Last modified: 2013-12-04 03:25:36 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 T59703, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57703 - EXPLAIN query
EXPLAIN query
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Unprioritized minor
: ---
Assigned To: Marc A. Pelletier
aklapper-moreinfo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-28 09:13 UTC by tb
Modified: 2013-12-04 03:25 UTC (History)
5 users (show)

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


Attachments

Description tb 2013-11-28 09:13:50 UTC
Howdy. I have an oddly slow-running query;  can I request someone with relevant permissions EXPLAIN the query below on enwiki.labsdb please? 
-----
SELECT count(1) AS 'howmany'
FROM enwiki_p.pagelinks l
INNER JOIN p50380g50491_rlrl_enwiki.suggestions s ON
   l.pl_namespace = s.sug_orig_ns AND l.pl_title = s.sug_orig
WHERE l.pl_from = 38136839 
AND   s.sug_status >= 0;
Comment 1 Andre Klapper 2013-11-28 11:54:15 UTC
Hi tb, 
unfortunately this report is not very useful because it does not describe the problem well. If you have time and can still reproduce the problem, please read https://www.mediawiki.org/wiki/How_to_report_a_bug and add a more useful description to this report by describing what the bug is, and/or what "slow" exactly means, plus what you want to see "explained" here.
Comment 2 p858snake 2013-11-28 12:01:17 UTC
(In reply to comment #1)
> Hi tb, 
> unfortunately this report is not very useful because it does not describe the
> problem well. If you have time and can still reproduce the problem, please
> read
> https://www.mediawiki.org/wiki/How_to_report_a_bug and add a more useful
> description to this report by describing what the bug is, and/or what "slow"
> exactly means, plus what you want to see "explained" here.

…

EXPLAIN is a MySQL function.
Comment 3 tb 2013-11-28 16:19:16 UTC
Apologies if my initial report was unclear.  Per bug #48875, it is not possible for tool labs end users to use the MariaDB EXPLAIN facility.  One of my tools is running more slowly that I expected;  I have tracked this down to a particular SQL query it.

I am requesting that someone with relevant permissions connect to enwiki.labsdb, execute the command below and return the result to me please.  This should (hopefully) give me the information I need to resolve the problem.

EXPLAIN SELECT count(1) AS 'howmany'
FROM enwiki_p.pagelinks l
INNER JOIN p50380g50491_rlrl_enwiki.suggestions s ON
   l.pl_namespace = s.sug_orig_ns AND l.pl_title = s.sug_orig
WHERE l.pl_from = 38136839 
AND   s.sug_status >= 0;
Comment 4 Marc A. Pelletier 2013-11-28 17:58:27 UTC
*************************** 1. row ***************************
           id: 1
  select_type: SIMPLE
        table: pagelinks
         type: ref
possible_keys: pl_from,pl_namespace
          key: pl_from
      key_len: 4
          ref: const
         rows: 1205
     filtered: 100.00
        Extra: Using index
*************************** 2. row ***************************
           id: 1
  select_type: SIMPLE
        table: s
         type: ref
possible_keys: PRIMARY,sug_orig
          key: PRIMARY
      key_len: 4
          ref: enwiki.pagelinks.pl_namespace
         rows: 151
     filtered: 100.00
        Extra: Using where

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


Navigation
Links