Improve performance in deleteLogDataForDeletedSites when deleting data for more than one site #18618
Labels
c: Performance
For when we could improve the performance / speed of Matomo.
Milestone
Refs DEV-2528
We have a user report concerning slow performance for the deleteLogDataForDeletedSites scheduled task when more than one measurable has been deleted.
One of the queries that took really long to execute was the following:
This ran for over an hour and a half before they decided to kill it and instead run the following query for each ID site individually:
As you can see the above queries for each individual site executed very quickly.
They tried again after this to manually execute the query that was previously running for both ID sites, after 10 minutes they killed that manual query again because it was clearly a lot slower than just doing it individually for each ID site.
The text was updated successfully, but these errors were encountered: