Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing index in mysql table piwik_options #1780

Closed
anonymous-matomo-user opened this issue Oct 24, 2010 · 5 comments
Closed

Missing index in mysql table piwik_options #1780

anonymous-matomo-user opened this issue Oct 24, 2010 · 5 comments
Assignees
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Milestone

Comments

@anonymous-matomo-user
Copy link

Hey guys,

nothing to worry that bad about, nevertheless, in my mysql log the query

SELECT option_value, option_name FROM piwik_option WHERE autoload = 1;

appeared. This query does not use an index on the column autoload. As it contains not that much stuff the performance issue is not that dramatic but it gives spaces for optimisation at this point.
Or have there been any special reasons which I did not consider, yet?

rgrds
Peter

@robocoder
Copy link
Contributor

Is there a MySQL message?

@robocoder
Copy link
Contributor

Nevermind. I found the setting: http://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_log-queries-not-using-indexes

matt: add an index for autoload, option name, or both?

@anonymous-matomo-user
Copy link
Author

Well in this specific case i just checked with this one parameter autoload for selection and setting an additional indey for this column.
Maybe its worth a check to do an explain select on this query with both types of indexes and an in case the index of both fields does fine, too just measure the qeuery speed.

@mattab
Copy link
Member

mattab commented Nov 16, 2010

the primary key is option name already. I think it makes sense to add an index on autoload, to help the query autoloading the core _option values.

Given how _option is used in product, storing settings for websites and users, this suggestion makes sense.

@mattab
Copy link
Member

mattab commented Jan 11, 2011

(In [3696]) Page titles report improvements fixes #1898

  • new fields in 2 log tables (major schema upgrade in next release!)
  • code refactored and optimized,
    (only the UI to display top entry/exit page titles is missing)

Performance improvements

Improvements to integration tests

  • never loads the Provider plugin in proxy-piwik.php since reverse ip lookup slows up tests a lot
  • fixing a test result that were previously incorrect (_withCookieSupport) because a static cache wasn't cleaned after each test

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Projects
None yet
Development

No branches or pull requests

3 participants