Last modified: 2014-01-11 20:16:52 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 T60256, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58256 - IndexPager::buildQueryInfo (NewPagesPager) query needs tuning
IndexPager::buildQueryInfo (NewPagesPager) query needs tuning
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.23.0
All All
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
: performance
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-10 06:14 UTC by Sean Pringle
Modified: 2014-01-11 20:16 UTC (History)
1 user (show)

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


Attachments

Description Sean Pringle 2013-12-10 06:14:29 UTC
The following query is much slower on MariaDB enwiki with the FORCE INDEX than
without it:

SELECT /* IndexPager::buildQueryInfo (NewPagesPager) xxx.xxx.xxx.xxx */ rc_namespace, rc_title, rc_cur_id, rc_user, rc_user_text, rc_comment, rc_timestamp, rc_patrolled, rc_id, rc_deleted, page_len AS length, page_latest AS rev_id, rc_this_oldid, page_namespace, page_title, fp_stable, fp_pending_since, (SELECT GROUP_CONCAT(ct_tag SEPARATOR ', ') FROM `change_tag` WHERE ct_rc_id=rc_id ) AS ts_tags FROM `recentchanges` FORCE INDEX (new_name_timestamp) INNER JOIN `page` ON ((page_id=rc_cur_id)) LEFT JOIN `flaggedpages` ON ((fp_page_id = rc_cur_id)) WHERE rc_new = '1' AND (rc_namespace != '6') AND page_is_redirect = '0' ORDER BY rc_timestamp DESC LIMIT 51;

With force: > 1min, ~500000 rows hit with a filesort.

Without force: < 1ses, ~100 rows hit using rc_timestamp, no filesort.
Comment 1 Gerrit Notification Bot 2013-12-10 06:21:17 UTC
Change 100537 had a related patch set uploaded by Springle:
Remove problem forced index. Bug 58256.

https://gerrit.wikimedia.org/r/100537
Comment 2 Gerrit Notification Bot 2013-12-10 06:38:38 UTC
Change 100537 had a related patch set uploaded by Aaron Schulz:
Remove problem forced index. Bug 58256.

https://gerrit.wikimedia.org/r/100537
Comment 3 Gerrit Notification Bot 2013-12-10 20:30:17 UTC
Change 100537 merged by jenkins-bot:
Remove problem forced index

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

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


Navigation
Links