Auto-archiving is slower than it could be #4699
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
c: Performance
For when we could improve the performance / speed of Matomo.
wontfix
If you can reproduce this issue, please reopen the issue or create a new one describing it.
I am running the archiving cron job every 5 minutes, but each query uses a 24 hour interval like this one:
By saving the time when auto-archiving was ran the last time and using that in the queries we can make them up to 10 times faster. My tests show about 0.6 seconds needed for a 2 hour interval and 5 seconds for 24 hours one.
Keywords: sql
The text was updated successfully, but these errors were encountered: