Page MenuHomePhabricator

batch deletions in pruneChanges script
Closed, ResolvedPublic

Description

00:17 < pastacat> aude: PruneChanges from WB should probably batch the DELETE query for sanity
00:28 < pastacat> aude: and waitForSlaves in EntityPerPageBuilder should use wfWaitForSlaves since $lb->getMaxLag() so too cached
00:30 * pastacat notices random stuff
00:38 < pastacat> though I guess if getLagTimes gets hit enough it regenerates a lot

Event Timeline

aude raised the priority of this task from to Needs Triage.
aude updated the task description. (Show Details)
aude subscribed.

Change 203371 had a related patch set uploaded (by Aude):
Batch deletions in pruneChanges script

https://gerrit.wikimedia.org/r/203371

aude triaged this task as Medium priority.Apr 10 2015, 7:31 PM

A few minor log entries:

2015-04-15 07:45:01 terbium wikidatawiki: Query affected 2498 row(s):
query-m: DELETE FROM wb_changes WHERE (change_time < 'X')
TransactionProfiler.php line 173 calls wfBacktrace()
Database.php line 1165 calls TransactionProfiler->recordQueryCompletion()
Database.php line 3102 calls DatabaseBase->query()
pruneChanges.php line 174 calls DatabaseBase->delete()
pruneChanges.php line 100 calls Wikibase\PruneChanges->pruneChanges()
doMaintenance.php line 103 calls Wikibase\PruneChanges->execute()
pruneChanges.php line 182 calls require_once()
MWScript.php line 97 calls require_once()

Change 203371 merged by jenkins-bot:
Batch deletions in pruneChanges script

https://gerrit.wikimedia.org/r/203371