routewatch/internal/database
sneak 6f0f217379 Add additional database indexes for better query performance
- Add covering index for SELECT id queries (avoids table lookups)
- Add stats index for COUNT queries on live_routes
- Add index on asns.number for ASN lookups
- Add index on bgp_peers.peer_ip for peer lookups

These indexes should further reduce query times, especially:
- The covering index includes the id column, eliminating the need
  to access the table after index lookup
- The stats index helps with COUNT(*) queries
- The asns.number index speeds up ASN lookups in transactions
2025-07-27 22:39:31 +02:00
..
database.go Extract database schema to separate SQL file 2025-07-27 22:38:51 +02:00
interface.go Remove BGP keepalive logging and add peer tracking 2025-07-27 21:54:58 +02:00
models.go Initial commit: RouteWatch BGP stream monitor 2025-07-27 21:18:57 +02:00
schema.sql Add additional database indexes for better query performance 2025-07-27 22:39:31 +02:00
slowquery.go Add SQL query logging and performance improvements 2025-07-27 22:34:48 +02:00
utils.go Initial commit: RouteWatch BGP stream monitor 2025-07-27 21:18:57 +02:00