routewatch/internal/database
sneak 8f524485f7 Add periodic WAL checkpointing to fix slow queries
The WAL file was growing to 700MB+ which caused COUNT(*) queries to
timeout. Reads must scan the WAL to find current page versions, and
a large WAL makes this slow.

Add Checkpoint method to database interface and run PASSIVE checkpoints
every 30 seconds via the DBMaintainer. This keeps the WAL small and
maintains fast read performance under heavy write load.
2026-01-01 05:42:03 -08:00
..
database_test.go Add IPv4 range optimization for IP to AS lookups 2025-07-28 03:23:25 +02:00
database.go Add periodic WAL checkpointing to fix slow queries 2026-01-01 05:42:03 -08:00
interface.go Add periodic WAL checkpointing to fix slow queries 2026-01-01 05:42:03 -08:00
models.go Unify IP lookup response structure and add PTR lookups 2025-12-27 15:56:10 +07:00
schema.sql Add WHOIS stats to status page with adaptive fetcher improvements 2025-12-27 16:20:09 +07:00
slowquery.go Reduce slow query threshold from 50ms to 25ms 2025-07-29 04:20:43 +02:00
utils.go Add IPv4 range optimization for IP to AS lookups 2025-07-28 03:23:25 +02:00