See also user_delete() performance: index comment uid columns. After addressing that indexing issue, I found dblog_user() taking up the bulk of my user_delete() time - indexing the {watchdog} uid column I went from 3900 users deleted in one batch to 12,086 in the next (with plentyy of time left for more - it finished the job in a tenth of the time it took for the 3900 previously).
| Comment | File | Size | Author |
|---|---|---|---|
| dblog.install.patch | 815 bytes | mikeryan |
Comments
Comment #1
Anonymous (not verified) commentedBelieve it or not, this still works in 6.13.
Comment #2
gábor hojtsyChanges are made to Drupal 7 first to ensure we do not introduce any (schema) regressions.
Comment #3
mikeryanThis has been done in Drupal 7.
Comment #4
gábor hojtsyCan you please provide an issue URL where the change/commit is documented?
Comment #5
mikeryanOK, tracked down the source of the fix: #324110: Missing index on uid... Closing this as a dupe of that, since that's where the D7 fix was committed.