Epic ticket to keep track of work done by many different teams and people. See T307328: Scalability issues of recentchanges table for more information
Description
Event Timeline
Baseline. In June 2025 (30 days), we had:
- 22,274 cases of queries killed: https://logstash.wikimedia.org/goto/de2a237fb7ac4b7cb1ddba361091039b
- 172,142 cases of queries being slower than 5 seconds: https://logstash.wikimedia.org/goto/da8b027b65d197d32dcb11440f24eb49
Mentioned in SAL (#wikimedia-operations) [2025-08-26T02:17:12Z] <TimStarling> on db2202 creating copy of enwiki.recentchanges for performance analysis T400696
I mentioned this already on the cloud mailing list, but please remeber to update the documentation if you are making database changes.
At the time of writing, there is no mention of either deprecation or removal of the rc_type and rc_new columns (which are now gone on the Toolserver).
https://www.mediawiki.org/wiki/Manual:Recentchanges_table#rc_type
Looking at the metrics, I think T399455 did the job already, at least for RC/RCL. It looks like a ~70% reduction in total slow query time for RC and ~79% for RCL.
Mentioned in SAL (#wikimedia-operations) [2025-10-09T21:25:18Z] <TimStarling> on db2202 cleaned up the tables I created for T400696
