Clear a table while preserving its rules
Ashroot can clear an eligible table and its indexes in bulk. For a matched 1,024-row fixture with four indexes, complete instructions fell by 85.68% to 92.38% across the three tested backends.
Ask the schema whether bulk clear is safe
Clearing a table must preserve the relationship, index and ownership rules of ordinary deletion. Ashroot can use a bulk path for Database::clear_table when its schema declares zero incoming relationships and every index proves that bulk clear has the same effect as deleting rows one at a time. A custom index follows the ordinary path unless it explicitly meets that contract. Tables with incoming relationships still use row-by-row checks so that rules such as restricting a delete or cascading it can run.
Keep the same limits and outcomes
The bulk path checks operation budgets before it starts changing state. It can then clear the stores and indexes together, retiring owned values where required. An error after mutation begins still traps. The qualification verified the emptied table and index state, and the test suite also exercises budget refusals and owned-value cleanup. The application continues calling the same method regardless of which path its schema permits.
Measure a complete clear on each backend
The final qualification compares the same 1,024 rows and four indexes on each backend, with metered page charges included. Nyxus went from 16,796,674 to 2,404,887 instructions, Hylix from 123,174,475 to 9,388,889, and Minima from 18,933,090 to 2,140,840. The first candidate had clear-table regressions. The report keeps those results as well as the final matched run, where the eligible fast path improved all three configurations. Those figures apply to the qualified schema and its workload.