benwinton Posted July 17, 2019 Report Posted July 17, 2019 I bet this topic already is in a forum, but had a little trouble finding it. I apologize in advance. Thanks to having a robust clientele and lots of advertising, our database is also getting really big. Are there tips on how to prune the database to keep its size manageable? For example, I have emptied the _userlog table. I don't really need to see who's logged or when. It was good for about 1.5 MB. The biggest tables are data_intermediate_ad and data_summary_ad_hourly. Is it safe th empty those? Or, is there a recommendation on how to at least prune them? I can run sql commands, but am only at an intermediate skill level on that. So, any help construction such commands would be appreciated. Thanks! Quote
Fritex Posted January 12, 2020 Report Posted January 12, 2020 Are you on shared hosting, VPS or dedicated server? Prefer to optimize and tune your MySQL or MariaDB server. Moreover, try using Apache or even better, Nginx with some cache control headers for files, etc. Quote
tbobker Posted February 9, 2020 Report Posted February 9, 2020 How far back does your reporting go? It sounds like you have a few years worth of data. You could remove all hourly reporting for campaigns older than 1 year for example. Quote
420 Posted January 27, 2021 Report Posted January 27, 2021 On 2/9/2020 at 12:52 PM, tbobker said: How far back does your reporting go? It sounds like you have a few years worth of data. You could remove all hourly reporting for campaigns older than 1 year for example. Same issue here. How do you do this? Is there a way to prune old data after X years? Or at least email sponsors their stats instead of having it recorded? Quote
Jaimee Posted December 29, 2023 Report Posted December 29, 2023 Hi, I remember a solution a few years ago. Take a look here. Greetings - Jaime Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.