Add an aggregate_gc_threshold and use it in ::deleteAll()

Closes #3505776

Merge request reports

Loading