Last modified: 2014-07-23 07:36:49 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 T70396, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68396 - Add index on event_action, event_isAnon and event_namespaceId to NavigationTiming tables
Add index on event_action, event_isAnon and event_namespaceId to NavigationTi...
Status: NEW
Product: Analytics
Classification: Unclassified
EventLogging (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Sean Pringle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-22 19:34 UTC by Tisza Gergő
Modified: 2014-07-23 07:36 UTC (History)
10 users (show)

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


Attachments

Description Tisza Gergő 2014-07-22 19:34:36 UTC
I would like to use the NavigationTiming tables to make a dashboard of image loading speeds by filtering on the action, anon and namespace fields (the patch is at https://gerrit.wikimedia.org/r/#/c/148021 ) which will probably be slow without indexes on the relevant columns.

(I don't need it, but in general event_isHttps also seems like a good candidate for an index.)
Comment 1 nuria 2014-07-22 19:44:53 UTC
Adding sean (on ops) to ticket as normally he does the db management of this db.
I believe analytics team does not have permits to add indexes.
Comment 2 Sean Pringle 2014-07-23 07:31:56 UTC
The eventlogging slaves (analytics-store and s1-analytics-slave) already have indexes on (wiki, timestamp) for all tables, plus the optimizer chooses to automatically index the derived tables generated by the subqueries.

The result isn't terrible: ~4m for wiki = 'enwiki' and ~1m for dewiki.

How frequently will the queries run?
Comment 3 Tisza Gergő 2014-07-23 07:35:00 UTC
Once a day per wiki.
Comment 4 Tisza Gergő 2014-07-23 07:36:49 UTC
event_action is probably not useful since we are filtering on view events, which are the majority, so it's unlikely that index would end up being used. event_namespaceId on the other hand should have pretty high selectivity.

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


Navigation
Links