Make batch size in the cleanup command configurable.
Bug #681402 reported by
Anthony Lenton
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.
Changed in canonical-identity-provider: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
To post a comment you must log in.
While we're there, we should make cleaning up each table -- associations, nonces and sessions -- optional.