perf(db): resolve packet endpoints at read time (#163)

Storing a full candidate snapshot on every observation was the wrong call. The same node lists got copied thousands of times, about 22 GB on prod. Resolve endpoints live like path hops and drop the column.
This commit is contained in:
MrAlders0n authored and GitHub committed 2026-09-25 13:59:07 -04:00
1 parent 3dee2098ba
commit 91b4b457b5
15 files changed
+713 -488

No files matched your search

+2 -2
View File
@@ -52,10 +52,10 @@ jobs:
BEACON_TEST_POSTGRES_DSN: postgres://postgres:backup-ci-only@127.0.0.1:5432/postgres?sslmode=disable
run: go test ./cmd/beacon -run '^TestBackupConfigurationPostgres$' -count=1 -v
- name: Verify signal and path aggregates against PostgreSQL 16
- name: Verify stats and endpoint queries against PostgreSQL 16
env:
BEACON_TEST_POSTGRES_DSN: postgres://postgres:backup-ci-only@127.0.0.1:5432/postgres?sslmode=disable
run: go test ./db -run '^Test(Signal|Paths)Postgres$' -count=1 -v
run: go test ./db -run '^Test(Signal|Paths|PacketEndpointsResolveLive)Postgres$' -count=1 -v
- name: Verify backup command against PostgreSQL 16
run: |