How often do you suggest to run the archive task? How does the setting “Reports for today will be processed at most every” relate to the cron interval?
ROFL, my archiving run (with 6k sites) runs for two hours already.
I’m still wondering why its doing that lot of queries for a couple of views per site.
[quote=Thomas Seifert @ May 17 2010, 07:39 AM]ROFL, my archiving run (with 6k sites) runs for two hours already.
I’m still wondering why its doing that lot of queries for a couple of views per site.[/quote]
Can you please enable mysql slow query logging and report here, any slow query that might be executed during your archiving with 6k websites? This is an interesting use case and we haven’t yet made performance tests.
Its not slow queries. Its just an awful lot of queries. When looking at the real time stats its running most of the time with more than 500 queries / second. See the aggregated stats attached.
[quote=Thomas Seifert @ May 18 2010, 09:17 AM]Its not slow queries. Its just an awful lot of queries. When looking at the real time stats its running most of the time with more than 500 queries / second. See the aggregated stats attached.
[attachment=1271:Bildschi…11.14.06.png][/quote]
Technically piwik should only make one query per website if they don’t have any traffic. If they have at least one visit, indeed, there are many queries per website, this is expected.
Is piwik on a dedicated server? What is the total traffic of all websites, when archiving takes 2 hours?