TL;DR: Large action log purges can turn routine cleanup into long-running, lock-heavy maintenance that makes instances slow or unusable, according to Passbolt. Action log retention and purge size have to be managed as production controls when cleanup can freeze administration workflows.
Editorial analysis by NHI Mgmt Group, based on content published by PassBolt: “Automating Passbolt Maintenance, Part 2: Prepare the first run on large databases”.
Key questions
Q: When should teams prioritize log retention changes over disk reclamation?
A: Prioritise row deletion first when the immediate problem is performance or table bloat, and treat disk reclamation as a separate step only when storage pressure remains after the purge.
Q: How do you know a purge strategy is too aggressive for the environment?
A: If dry-run estimates suggest a very large deletion, or if the table has grown across years without maintenance, the strategy is too aggressive for one pass.
Q: What breaks when a large action log purge runs without a maintenance window?
A: The purge can hold locks long enough to make the instance slow or unusable, and users may experience delayed logins, stalled queries, or a frozen administration workflow.
Practitioner guidance
- Plan purge work in explicit maintenance windows Assume downtime if you are deleting a large volume of logs, and communicate the window before the first purge run begins.
- Run purges in staged retention passes Start with the oldest retention threshold that matches the system age, then step down in smaller passes instead of deleting everything older than one date.
- Separate disk reclamation from row deletion Use OPTIMIZE TABLE only when you truly need filesystem space back, because it can lock the table and require additional free capacity during the rebuild.
Bottom line: Large action log tables can turn maintenance into a service-availability event rather than a routine admin task.
Glossary terms: Action log retention, Logical Deletion, Maintenance window, Table rebuild
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Large audit-log cleanup is a production control, not a housekeeping task. The article shows that once an action log reaches the million-row range, maintenance behaviour changes from routine admin work into a service-availability decision. That shifts the governance question from whether logs should be retained to how retention can be reduced without breaking the system. Practitioners should treat log cleanup as an availability-sensitive control surface.
A question worth separating out:
Q: What should administrators do before rebuilding a large action_logs table?
A: Confirm that the maintenance window is reliable, because a rebuild can lock the table and temporarily require significant extra disk space. If the window is not dependable, defer the rebuild and focus on reducing the log volume safely first.
👉 Read our full editorial: Large action log purges need staged cleanup, not one big run