-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Milestone
Description
- report if there are rows matching
date < NOW() - INTERVAL 1825 DAY(5 years) - table has really old data, worth checking if such long data retention is actually needed -data_too_old - report if there no rows matching
date > NOW() - INTERVAL 30 DAY(a month) - table is no longer updated, worth checking if it's still needed -data_not_updated_recently - allow to customise the thresholds via environment variables (in days) -
INDEX_DIGEST_DATA_TOO_OLD_THRESHOLD_DAYS/INDEX_DIGEST_DATA_NOT_UPDATED_RECENTLY_THRESHOLD_DAYS
mysql@geo-db-specials-master.query.consul[specials]>select max(timestamp) from jobs_summary;
+---------------------+
| max(timestamp) |
+---------------------+
| 2012-10-05 15:30:56 |
+---------------------+
1 row in set (0.27 sec)Guard behind --analyze-data cli flag (as this can take a while on large tables where timestamp column is not a part of an index)
Reactions are currently unavailable