Execute segment query only once to improve performance #8354
Labels
c: Performance
For when we could improve the performance / speed of Matomo.
duplicate
For issues that already existed in our issue tracker and were reported previously.
Milestone
Background
When we have a segment like
segment=pageUrl=@subdomain.domain.com/en
, Piwik executes a subquery to filter the data set. This query uses conditionwhere name like %subdomain.domain.com/en%
.Problem
Everything works OK but the case is that Piwik executes the same query for each archiver query. In ideal case Piwik would query the action IDs only once and then cache it.
Performance use case
I think that this improvement would greatly improve Piwik performance, mostly for users who are using segments processed in realtime.
The text was updated successfully, but these errors were encountered: