On enwiki, there are about 80M rows in the echo_event table, but only 18M of them have echo_notification rows pointing to them. That leaves 62M orphans. We should change the notification removal code to delete orphaned events, and also do a one-off cleanup removing those 62M orphans.
Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Add script to remove orphaned event rows | mediawiki/extensions/Echo | master | +72 -0 |
Related Objects
Related Objects
Event Timeline
Comment Actions
Change 292974 had a related patch set uploaded (by Catrope):
Add script to remove orphaned event rows
Comment Actions
Mentioned in SAL [2016-06-21T13:11:28Z] <RoanKattouw> Running extensions/Echo/maintenance/removeOrphanedEvents.php on all Echo-enabled wikis for T136425
Comment Actions
This is now done. It took 8 hours and 50 minutes. I didn't get a count of how many rows it removed, but across all wikis combined it's certainly over 100M.