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
Live API can timeout on very large Piwik servers #6786
Comments
…er to avoid Mysql load too much data in memory, which is causing the performance problem
…y increase performance by limiting amount of data selected in memory for the log_inner query
…a bug in the inner segment queries logic which is used to always group by idvisit but maybe in some cases this doesn't make sense or would create bugs in the data
Here is the same query as in description but fixed up after refactoring:
It runs in less than 1.8s on the demo. This is at least 10x faster and much more at higher scale. Actual commit post refactor that mostly fixed it a37254a (also the I will close the issue but I'm not saying it's the end of Live plugin performance. Though clearly this was a real bug in the logic when datasets are huge. |
Fixed in #6817 |
The goal of this issue is to investigate the Live API plugin in a high traffic environment, and make the Live plugin render fast at all times in such environment.
Here is an example long running query triggered by Live API:
On this Piwik instance, it was running for hours already. When I run this query on the demo, it takes 13 seconds. Ideally, creating the Visitor Log / Live API output should fall within 1-2 seconds.
The text was updated successfully, but these errors were encountered: