feat(daemon): _signals table retention policy #152
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
PR #150 introduced auto-persist signals to per-sense SQLite DB (
_signalstable). Currently the table grows unbounded.Problem
Long-running senses (e.g.
cpu-usageat 5s interval) will accumulate rows indefinitely, eventually impacting disk usage and query performance.Proposal
Add a retention mechanism, e.g.:
retentionfieldSimplest first step: periodic
DELETE FROM _signals WHERE timestamp < ?in the worker loop.Ref