Specify custom purge interval for «scheduler_stats» tables

These 2 useless for me tables take 99.9% of my database’s disk space:

https://github.com/discourse/discourse/blob/v1.8.0.beta11/app/models/scheduler_stat.rb#L2-L4

1 Like

Personally I don’t see this as a big problem. 39MB is pretty small as far as installed software goes. As your forum grows in data, you’ll see a much smaller percentage of usage.

5 Likes

So your complaint is that these are “only” purged every 3 months?

Looking at this scheduler_stats table and the data in it, seems ultra pointless to me, nobody can even tell me why it’s there … cc @sam

I am gonna change it to purge anything older than 1 month so that will cut its size by 2/3rds while certainly retaining enough data rows for… whatever the hell this is for in the first place…

This should help DB storage space a bit on our hosting as well as we have tons and tons of vacant hosted sites (for trials, etc).

3 Likes