09-21-2017 03:58 AM
We are using alfresco4.2.c for content management. Now there are more than 23 lakhs of nodes in trashcan, which is consuming a lot of disk space. To overcome this problem we have integrated the trashcancleaner module to our alfresco. But the job is taking too much time to complete. So we are not able to run this job on an hourly basis. We are running this cron only twice a day, so we are able to clear only 2000 nodes a day. Is it possible to change the trashcan.deleteBatchCount=1000 to trashcan.deleteBatchCount=25000?
09-21-2017 03:28 PM
For anyone not familiar with lakhs (almost everyone here not hailing from India), the original poster has 2.3 million nodes in the trashcan.
It sure is possible to change the batch count to a higher value, but that won't necessarily result in a faster cleanup. A single batch might cleanup more nodes, but it will take longer doing it. Also, there might be significant performance side-effects, as such a large batch / transaction can put significant load on the database. Some databases may escalate row locks to table locks, which could hold up parallel actions by other users.
Incidentally, one of the projects suggested for the global, virtual hack-a-thon is focussing on better trash management.
Explore our Alfresco products with the links below. Use labels to filter content by product module.