Last modified: 2014-04-15 06:22:18 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..
See also bug 36195
(In reply to comment #1) > See also bug 36195 Bug 36195 seems like an exact duplicate of this bug. Am I missing something?
(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
(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.