Last modified: 2014-08-15 16:22:45 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 T71610, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69610 - Improve perf of rolling active editors with dba's suggestions
Improve perf of rolling active editors with dba's suggestions
Status: NEW
Product: Analytics
Classification: Unclassified
Wikimetrics (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
: performance
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-15 15:32 UTC by nuria
Modified: 2014-08-15 16:22 UTC (History)
7 users (show)

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


Attachments

Description nuria 2014-08-15 15:32:28 UTC
ELECT
  anon_1.user_id AS anon_1_user_id,
  IF(SUM(anon_1.count) >= 5, 1, 0) AS `IF_1`
FROM (
Note "order by null " and archive_userindex  


SELECT
    anon_2.user_id AS user_id,
    anon_2.count AS count
  FROM (
    ( SELECT 
        revision_userindex.rev_user AS user_id,
        count(revision_userindex.rev_user) AS count
      FROM revision_userindex
      WHERE revision_userindex.rev_timestamp BETWEEN '20140716000000' AND '20140815000000'
      GROUP BY revision_userindex.rev_user
      ORDER BY NULL)
    UNION ALL
    ( SELECT
        archive_userindex.ar_user AS user_id,
        count(archive_userindex.ar_user) AS count
      FROM archive_userindex
      WHERE archive_userindex.ar_timestamp BETWEEN '20140716000000' AND '20140815000000'
      GROUP BY archive_userindex.ar_user
      ORDER BY NULL)
  ) AS anon_2
) AS anon_1
GROUP BY anon_1.user_id
ORDER BY NULL;

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


Navigation
Links