Separate IPv4 and IPv6 routes into different tables

- Create live_routes_v4 and live_routes_v6 tables
- Update all database methods to use appropriate table
- Add IP version detection in database queries
- Remove filtering by ip_version column for better performance
- Fix route count queries that were timing out
- Update PrefixHandler to include IP version in deletions
This commit is contained in:
2025-07-28 22:29:15 +02:00
parent 8e12c07396
commit 3673264552
5 changed files with 587 additions and 303217 deletions

View File

@@ -83,6 +83,7 @@ type LiveRouteDeletion struct {
Prefix string
OriginASN int
PeerIP string
IPVersion int
}
// PeerUpdate represents parameters for updating a peer