Hi Rute,
Unfortunately, it's very difficult to give a precise number on this, as it will depend on how your AtoM instance has been installed and configured - the amount of available CPU and memory, as well your
PHP execution limits. Your web browser also typically has its own timeout limit so that page load requests don't exhaust all available client memory, and since deletion requests are being performed synchronously via the web browser, adjusting PHP execution values such as
max_execution_limit may not fully solve the issue for large operations, as eventually your web browser might terminate the operation mid-process.
For very large deletions you have a couple options:
- When working via the user interface, start by deleting intermediary levels. For example if your 13-thousand record fonds has a couple series, try deleting a series, or even a subseries first.
- For large hierarchies with no intermediary levels, consider using the command line. We have a task that can be used to delete descriptions, described here. While you still might need to adjust your PHP execution limits for large requests, this will at least bypass the limitations of the web browser.
A couple other thoughts:
In the future it would be possible to handle hierarchy deletion requests via the Job scheduler - this is how we have resolved many of AtoM's long-running request issues with large operations, such as moves, imports and exports, etc. This will require development for us to implement but it's a good option for solving this in the long term.
Finally, if you've run into repeated 504 errors when trying to perform large deletes, there's a chance that, as those operations timed out, they have left incomplete rows in the database, which could cause database corruption. We have some recommended queries that can be run against MySQL to check for this, along with some tips for resolving the most common issues, on the Troubleshooting page, here:
You may want to ask a system administrator to perform some of these checks, just in case! Better to catch and fix a problem early!
Cheers,