#3352 - Change "Stats retention time" option
| Identifier | #3352 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Change "Stats retention time" option |
| Status | Completed |
| Tags |
Good for training (custom) |
| Handling member | Chris Graham |
| Addon | stats |
| Description | Instead of how many days to keep it, change it to how many MB of total data to keep.
This is more in line with what people need. Default it to 50MB? https://stackoverflow.com/questions/1733507/how-to-get-size-of-mysql-database Remove from the Setup Wizard. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
Doing it by filesize is going to be unreliable (databases don't clean out garbage always), and database-vendor-specific.
Doing it by filesize or number of rows is not what a lot of people will want anyway. Most people probably do want it done by days so they have a certain amount of back-data.
DB quota is not an official MySQL feature.
So instead I've added a new health check that checks database size. This is MySQL-only. You can configure how big you want to let the database get.