In enwiki.recentchanges, there are 11 rows in recentchanges that predate the 1 month cutoff. The oldest is from 2024-08-10. They are all renameuser/renameuser log actions. This is causing a severe performance regression in Special:RecentChanges because isDenseTagFilter() is returning true for some filters that are not actually dense.
The formula is:
$isDense = $limit * $rcSize < $tagCount * $tagCount;
$rcSize is ~132M when it should be ~10M. For filter 656, $tagCount is ~136k when it should be ~13k. So for limit = 100, the inequality is 1.3e10 < 1.9e10 when it should be 9.9e8 < 1.8e8.
Experimentally, using JOIN instead of STRAIGHT_JOIN reduces the query time from 10.6s to 0.5s.
