Performance issue with retrieving segmented visitor log by Event Category/Action/Name #14784
Labels
answered
For when a question was asked and we referred to forum or answered it.
Milestone
Hello All -
Wanted to bring to your notice an issue with the viewing of Segmented Visitor Log, of Event Categories/Actions/Names.
The query trying to retrieve Segmented visitor log (top 50 records), for a given Event Action is taking close to 4 minutes.
Here is the query for reference:
`SELECT sub.* FROM (
After due investigation, it was identified that there a missing on log_link_visit_action table, that is causing the entire MYSQL box crazy.
Here is the index for reference:
CREATE INDEX index_idaction_event_action ON matomoprod.matomo_log_link_visit_action (idaction_event_action ASC) ;
This actually did the trick. Though we are trying to retrieve the data for a month range, the query started taking < 1-2 sec, compared to 4 mins earlier.
Also as a general thumb rule we add foreign key indexes on the transaction tables, for faster retrieving of the data.
Till we have a broader solution to address this as mentioned in the below issue (i.e. splitting log_link_visit_action table), indexes should help address the problem
https://github.com/matomo-org/matomo/issues/14119
Thanks in advance.
Regds,
Sivakumar
The text was updated successfully, but these errors were encountered: