how to control page views
Posted: Wed Apr 04, 2018 9:51 am
Website has been up for some time and working out ok. However it went down recently, due to file size growing significantly. The root cause is the ac_pageviews table has 21 million rows over the last two months. We don't get but a handful of actual customers per day so it must be bots? I truncated the table and it's back up and running now.
How do I prevent this from happening again? I had set the page tracking to maintain history for only 7 days, so I'm not sure why there was data from 2 months ago in the table, unless this is the wrong setting I'm using. I can also just turn off the tracking as a worst case scenario. I'm not sure what kind of bot this is - the user agent for the majority of the rows I deleted was 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36''
Appreciate any advice or tips to prevent this. Thanks!
How do I prevent this from happening again? I had set the page tracking to maintain history for only 7 days, so I'm not sure why there was data from 2 months ago in the table, unless this is the wrong setting I'm using. I can also just turn off the tracking as a worst case scenario. I'm not sure what kind of bot this is - the user agent for the majority of the rows I deleted was 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36''
Appreciate any advice or tips to prevent this. Thanks!