We have an ACE 5.0. In this repository we have a folder with around 400,000 children (subfolders/documents). If we upload something else to that folder everything works fine.
So, we upgraded that ACE to the last version (25.x), first upgraded from 5 to 6.0, then to 7.4, then to 25. Now when we upload a document to that folder Alfresco does not return a response, it stays doing something until the client gets a timeout (tested with CMIS and Rest API).
Debugging Alfresco we saw that after creating the new document (inserting the node ans its properties), Alfresco executes a query to retrieve all the children in the parent folder and since that folder has more than 400,000 children that takes some time. After that Alfresco also sends a lot of queries for all the children and that's why never sends a response.
If you upload a document to an empty folder or with few documents that behavior is not noticeable.
We obviously did a backup and started to upgrade and test the upload to the same folder in every version:
- Version 5.0 works fine
- Version 6.0 works fine
- Version 7.4 works fine
- Version 23.1 has this behavior
- Version 25.1 has this behavior
Any clue of why this is happening?