Make batch size in the cleanup command configurable.

Bug #681402 reported by Anthony Lenton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical SSO provider
Confirmed
Medium
Unassigned

Bug Description

The cleanup command started batching queries out with the fix for bug #625206.
With a full DB though it still fails with a 30 second db query timeout, as the batch size is currently set to 10000. Annoyingly, this batch size is hardcoded into the cleanup command itself, so it can't be changed by configuration or via the command line.

The batch size for the cleanup command should be a configurable setting.

Revision history for this message
Anthony Lenton (elachuni) wrote :

While we're there, we should make cleaning up each table -- associations, nonces and sessions -- optional.

Changed in canonical-identity-provider:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.