mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-10-16 09:29:52 +00:00
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.
7 lines
288 B
SQL
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;
|