Files
beacon-server/db/migrations/038_drop_resolved_endpoints.sql
T
MrAlders0n 91b4b457b5 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.
2026-09-25 13:59:07 -04:00

7 lines
288 B
SQL

-- Copyright 2026 Beacon Contributors
-- SPDX-License-Identifier: AGPL-3.0-or-later
-- Endpoints now resolve at read time like path hops. The per-observation
-- snapshots were ~60% of packet_observations on prod.
ALTER TABLE packet_observations DROP COLUMN IF EXISTS resolved_endpoints;