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?
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.