Should I turn off statistics tracking on client site?
Permalink 1 user found helpful
I've seen in the c5 FAQ and other references throughout the forum (and other sites) that the dashboard statistics can be disabled. Apparently they can cause excessive resource consumption. In 5.3.3.1, is this still an issue? Does the PageStatistics table eventually wrap around or does it keep growing without bounds? This is not a problem for me now but I am trying to decide if I should disable them on my client site before it becomes a problem. Thanks.
i haven't really tracked this that much, but i would modify the insert statement to insert delayed which will do the insert when the db engine is free to do so instead of giving up on the stats entirely.
also disabling stats can disable other features as some addons and stuff rely on the code it inserts
Do you know what other features or addons disabling stats would affect?
I read about the issue and how to disable stats onhttp://defunctlife.com/2009/08/how-to-disable-concrete5-site-statis... and I was concerned about it creating large database tables and slowing things down unnecessarily.
I don't want to break anything else though. I disabled it on my local system and everything seems to be fine but if you have more detail, I'd appreciate it.
I read about the issue and how to disable stats onhttp://defunctlife.com/2009/08/how-to-disable-concrete5-site-statis... and I was concerned about it creating large database tables and slowing things down unnecessarily.
I don't want to break anything else though. I disabled it on my local system and everything seems to be fine but if you have more detail, I'd appreciate it.
i think that the forums package may depend on the statistics, but aside from that i think it's pretty safe.
Thanks everyone. I'm still wondering if the issues noted about the stats consuming resources is even still an issue. Do the stats grow without bounds or do they wrap around? Are other customers seeing problems? Thanks.
my stats are fine, they take up like no space and i don't see a performance difference
I run a site that gets 10-15k visits per day...been running it on Concrete 5.4 for probably 6 months now. The site crashed this evening because the PageStatistics table crashed.
I frantically found every reference to PageStatistics and commented it out of the code. Once the site was back up, I repaired the table and realized it had over 1.6 MILLION records.
I do like the stats built in to C5, but it seems like there might be a better method - increment a single record, rather than add a record every time someone visits the site...or something.
I know this is not a common issue for most people, but I just wanted to throw this out there.
I frantically found every reference to PageStatistics and commented it out of the code. Once the site was back up, I repaired the table and realized it had over 1.6 MILLION records.
I do like the stats built in to C5, but it seems like there might be a better method - increment a single record, rather than add a record every time someone visits the site...or something.
I know this is not a common issue for most people, but I just wanted to throw this out there.
well, thats kinda rare, look at concrete5.org
I'd be interested to know their setup? I'm sure getting around the same kind of traffic, if not more. Adding a record for every single page view just seems unreasonable to me.
So...andrew, franz? Any insight? Do you guys have this issue? Is your PageStatistics table huge?
So...andrew, franz? Any insight? Do you guys have this issue? Is your PageStatistics table huge?
I never felt confident on this issue, and I wasn't going to risk it because it looked to me like the table would fill up without bounds. I turned the stats off on the site I was worried about. I would also be interested if anyone has more insight into this so I know whether or not I can enable the stats on any future sites. Thanks.
yes. On a high volume site I would turn it off or flush the table by hand.
You shouldn't have a lot of issues on performance outside of that graph on the dashboard home. That's the first thing to disable cause it does a horrible job summing things up quickly. You can leave the writes on as there aren't a lot of reads elsewhere in the system, but yeah by the time the table is 1.6 million rows you might want to flush it. ;)
I'll have Andy weigh in here too, but that's my perspective - we never sat down and architected the stats to be a solution for huge problems.
You shouldn't have a lot of issues on performance outside of that graph on the dashboard home. That's the first thing to disable cause it does a horrible job summing things up quickly. You can leave the writes on as there aren't a lot of reads elsewhere in the system, but yeah by the time the table is 1.6 million rows you might want to flush it. ;)
I'll have Andy weigh in here too, but that's my perspective - we never sat down and architected the stats to be a solution for huge problems.
Franz is right: generally, writing to the page statistics table should be fast. The dashboard graph is another story, sadly.
Ideally, we'd have some process that would allow statistics summarization so that the entire page statistics table didn't have to be queried, resulting in that slow graph. We just haven't done that yet.
There is one caveat, though: in 5.4.1, we're introducing full page caching. With our lazy db loading, if a page is cached entirely, when it loads it won't even initiate a connection to the database, making it even faster. This will ONLY happen, however, when you disable page statistics, because otherwise every page load needs to have a db connection. Fortunately, in 5.4.1 we've added a dashboard option to disable page statistics, making it easier to do. This is probably the way to go for high traffic sites using a third party stats engine.
Ideally, we'd have some process that would allow statistics summarization so that the entire page statistics table didn't have to be queried, resulting in that slow graph. We just haven't done that yet.
There is one caveat, though: in 5.4.1, we're introducing full page caching. With our lazy db loading, if a page is cached entirely, when it loads it won't even initiate a connection to the database, making it even faster. This will ONLY happen, however, when you disable page statistics, because otherwise every page load needs to have a db connection. Fortunately, in 5.4.1 we've added a dashboard option to disable page statistics, making it easier to do. This is probably the way to go for high traffic sites using a third party stats engine.
Thanks for the input guys...
Is the full page caching fully functional in 5.4.1b2?
Is the full page caching fully functional in 5.4.1b2?
Yep. It's in the dashboard settings page globally, and can be setup on a page by page basis.
Is it safe to flush the PageStatistics-table after disabling statistics?
I just cleared out the table using phpmyadmin as instructed inhttp://defunctlife.com/2009/08/how-to-disable-concrete5-site-statis... It worked fine for me.