Optimize AS detail queries and increase PrefixHandler batch size

- Increase PrefixHandler batch size from 20k to 25k (25% increase)
- Add missing index on origin_asn for live_routes table
- This index significantly speeds up AS detail page queries
- Add code to create missing indexes on existing databases
This commit is contained in:
2025-07-28 22:07:27 +02:00
parent 6d46bbad5b
commit c35b76deb8
4 changed files with 852 additions and 1140 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ const (
prefixHandlerQueueSize = 100000
// prefixBatchSize is the number of prefix updates to batch together
prefixBatchSize = 20000
prefixBatchSize = 25000
// prefixBatchTimeout is the maximum time to wait before flushing a batch
// DO NOT reduce this timeout - larger batches are more efficient