wp_popularpostsdata table is HUGE and affecting blog performance
-
Hi, I’ve been using WP Popular Posts on a number of my WP sites for at least a couple of years now and have always liked it’s functionality.
I recently switched website hosts to SiteGround, largely because they provide a way for me to create a staging area of any WP site while working on it, which I can later “push to live” after I’m happy with my changes and have tested to make sure they didn’t break anything. It’s really an awesome feature and part of why I chose to switch to them as a hosting company.
Recently I went to do some work on How to Blog but when I tried to create a staging area of it I got an error message saying my database was too large. After contacting support, I was told that the maximum WP database size allowed when using the staging area is 100 MB. I didn’t think my database could possibly be this big, but when I went and got a look at all of the tables in the database, I discovered that wp_popularpostsdata has hundreds of thousands of records, and that that one table alone accounted for over a third of my entire database size. I suspect this is part of why GoDaddy had banned WP Popular Posts until the option of ‘sampling’ was introduced….
I modified my settings for the plugin to enable data sampling, but unfortunately this has done nothing to shrink size of the table (and thus my database), and I suspect only applies to future site visits…
When I browse the table using phpMyAdmin, it is clear that the records are going back all the way until April 2009! Is there some way to restrict the size of the dataset that is being used by the plugin – say to choose the most popular posts over the past month, 6 months, or year? Is it safe for me to delete some of the 6 years worth of data stored in the table since it is taking up too much space and is also irrelevant to current visitors…? Not to mention that the larger the WP database, the worse the performance of a site is, so I’d really like to keep my database svelte…
I don’t want to quit using the plugin – as I’ve said, I really like its functionality. But I did not realize until now what an impact it was having on the performance of my sites. I’m sure a lot of that has been mitigated by enabling data sampling, but what is one to do about all of the pre-existing hundreds of thousands of records going back over years??
Thanks for your assistance,
Emily Robbins
- The topic ‘wp_popularpostsdata table is HUGE and affecting blog performance’ is closed to new replies.