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

Make archive invalidator query faster when there are 10-100K sites #18991

Open
tsteur opened this issue Mar 23, 2022 · 1 comment
Open

Make archive invalidator query faster when there are 10-100K sites #18991

tsteur opened this issue Mar 23, 2022 · 1 comment
Labels
c: Performance For when we could improve the performance / speed of Matomo.

Comments

@tsteur
Copy link
Member

tsteur commented Mar 23, 2022

See https://forum.matomo.org/t/matomo-on-premise-scaling/45262

SELECT option_name, option_value FROM matomo_option WHERE option_name LIKE '%report\\_to\\_invalidate\\_%\\_%'; may take a few seconds when there are 10-100K sites.

Created #18990 as a minor improvement but it won’t make it much faster.

The initial % in the like clause that makes the query maybe slower is still needed as we currently prefix a random unique id to the option name so it won’t cause locks. This could be maybe worked around or changed but it's unclear.

It was added in https://github.com/matomo-org/matomo/pull/15666/files#diff-88e28f71aefcd536256f874d55fa5d6eb2783391010861ed67461ea6bbda4ef2R176 initially. See comment #15545 (comment) we weren’t even sure if it will work. This would need to be validated if it actually helps/works.

@tsteur tsteur added the c: Performance For when we could improve the performance / speed of Matomo. label Mar 23, 2022
@MatomoForumNotifications

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/matomo-on-premise-scaling/45262/8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Performance For when we could improve the performance / speed of Matomo.
Projects
None yet
Development

No branches or pull requests

3 participants