mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 08:31:55 +08:00
- Added initTables function to create necessary tables for metrics history, status statistics, and path statistics in the database. - Implemented indexing on timestamp columns to enhance query performance. - Introduced a cleanupRoutine function to periodically delete old metrics data based on retention policies, improving database management. - Integrated logging for cleanup operations to monitor success and errors during the cleanup process.