routewatch/internal/database
sneak 9a63553f8d Add index to optimize COUNT(DISTINCT prefix) queries
- Add compound index on (ip_version, mask_length, prefix) to speed up prefix distribution queries
- This index will significantly improve performance of COUNT(DISTINCT prefix) operations
- Note: Existing databases will need to manually create this index or recreate the database
2025-07-28 19:01:45 +02:00
..
database_test.go Add IPv4 range optimization for IP to AS lookups 2025-07-28 03:23:25 +02:00
database.go Fix prefix distribution bug and add prefix length pages 2025-07-28 18:42:38 +02:00
interface.go Fix prefix distribution bug and add prefix length pages 2025-07-28 18:42:38 +02:00
models.go Optimize database batch operations with prepared statements 2025-07-28 17:21:40 +02:00
schema.sql Add index to optimize COUNT(DISTINCT prefix) queries 2025-07-28 19:01:45 +02:00
slowquery.go Add custom logger with source location tracking and remove verbose database logs 2025-07-28 01:14:51 +02:00
utils.go Add IPv4 range optimization for IP to AS lookups 2025-07-28 03:23:25 +02:00