Last modified: 2014-04-15 06:22:18 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 T44180, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42180 - make "refreshLinks.php --dfn-only" faster (to work on en.wiki)
make "refreshLinks.php --dfn-only" faster (to work on en.wiki)
Status: NEW
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: performance
Depends on:
Blocks: 16112 36195
  Show dependency treegraph
 
Reported: 2012-11-16 08:24 UTC by Nemo
Modified: 2014-04-15 06:22 UTC (History)
5 users (show)

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


Attachments

Description Nemo 2012-11-16 08:24:05 UTC
Split from bug 16112 comment 47 as this is a problem in the script itself.

(Reedy said in bug 16112 comment 48)
> The original queries take an age, and isn't going to attempt to load it all.
> 
> mysql> explain select DISTINCT pl_from from pagelinks LEFT JOIN page ON
> pl_from=page_id;
> +----+-------------+-----------+--------+---------------+---------+---------+--------------------------+-----------+------------------------------+
> | id | select_type | table     | type   | possible_keys | key     | key_len |
> ref                      | rows      | Extra                        |
> +----+-------------+-----------+--------+---------------+---------+---------+--------------------------+-----------+------------------------------+
> |  1 | SIMPLE      | pagelinks | index  | NULL          | pl_from | 265     |
> NULL                     | 624327870 | Using index; Using temporary |
> |  1 | SIMPLE      | page      | eq_ref | PRIMARY       | PRIMARY | 4       |
> enwiki.pagelinks.pl_from |         1 | Using index; Distinct        |
> +----+-------------+-----------+--------+---------------+---------+---------+--------------------------+-----------+------------------------------+
> 2 rows in set (0.01 sec)
> 
> Removing the distinct would make things simpler.. If kept a client side count,
> and removed the distint... Would this work for us..
Comment 1 Umherirrender 2012-11-16 14:20:45 UTC
See also bug 36195
Comment 2 MZMcBride 2013-03-06 09:03:18 UTC
(In reply to comment #1)
> See also bug 36195

Bug 36195 seems like an exact duplicate of this bug. Am I missing something?
Comment 3 Sam Reed (reedy) 2013-03-06 09:15:08 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > See also bug 36195
> 
> Bug 36195 seems like an exact duplicate of this bug. Am I missing something?

Looks to be, one way or another
Comment 4 Nemo 2013-03-06 09:19:37 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > See also bug 36195
> 
> Bug 36195 seems like an exact duplicate of this bug. Am I missing something?

I never understood. :)
Assuming RobLa actually meant to file his bug in Wikimedia product, his request is about running the script in some different way on en.wiki, while this bug is about making the script more efficient so that such care is not needed.
If bug 36195 is fixed, in practice nobody will bother about fixing this, which should be closed; fixing this would imply fixing bug 36195 too.

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


Navigation
Links