Last modified: 2012-08-04 21:11:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40813, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38813 - My Contributions - Critical flood of slow queries that is causing a DB overload on en-wiki
My Contributions - Critical flood of slow queries that is causing a DB overlo...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ArticleFeedbackv5 (Other open bugs)
unspecified
All All
: Highest blocker (vote)
: ---
Assigned To: Matthias Mullie
:
Depends on:
Blocks: 39043
  Show dependency treegraph
 
Reported: 2012-07-30 02:22 UTC by Fabrice Florin
Modified: 2012-08-04 21:11 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Fabrice Florin 2012-07-30 02:22:15 UTC
A flood of slow queries from ArticleFeedbackv5Hooks::contributionsData() caused AFT5 to overloaded db12. As a result, it is now disabled in its entirety on the English-language Wikipedia. 

It looks like there is no af_user_id or af_user_ip index, so the query scans the whole aft_article_feedback table (200k rows) on every view of Special:Contributions, according to Tim Starling.

Needless to say, this is the most important bug we need to fix at this time, either by disabling feedback on MyContribs entirely, or by solving the specific problem about af_user_id and testing thoroughly that it solves the larger issue before deploying it in our next window.
Comment 1 Matthias Mullie 2012-07-30 14:27:59 UTC
Ok so:

- fix the issue by adding the appropriate index:
https://gerrit.wikimedia.org/r/#/c/16966/
Note: to be approved by Asher

- undo Tim's disabling AFT, thus enabling AFT again:
https://gerrit.wikimedia.org/r/#/c/16967/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links