routewatch/internal/database
sneak 5fb3fc0381 Fix prefix length page to show unique prefixes only
- Change GetRandomPrefixesByLength to return unique prefixes instead of all routes
- Use CTE to first select random unique prefixes, then join to get their latest route info
- This ensures each prefix appears only once in the list
2025-07-28 19:04:19 +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 length page to show unique prefixes only 2025-07-28 19:04:19 +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