Skip to content

perf(sensor): keep entries and channel out of the recorder - #34

Merged
timmaurice merged 1 commit into
masterfrom
perf/unrecorded-entries
Nov 13, 2026
Merged

timmaurice merged 1 commit into
masterfrom
perf/unrecorded-entries

Conversation

@timmaurice

Copy link
Copy Markdown
Owner

Summary

The sensor wrote its full entries and channel attributes, up to the recorder
limit, to the history on every change. They are now listed in
_unrecorded_attributes so the database stays small; the live state is unchanged
and feed_url is still recorded.

Follow-up, not in this PR: the oversize warning (warn_if_oversized, diagnostics.exceeds_recorder_limit) still measures all attributes and says the history will have no attributes, which is no longer accurate once entries and channel are unrecorded.

Tests

New test test_entries_and_channel_stay_out_of_the_recorder. pytest 273 passed locally. black clean.

No Docker or e2e run for this change. Board card c086.

The sensor wrote its full entries and channel attributes, up to the recorder
limit, to the history on every change. They are now listed in
_unrecorded_attributes so the database stays small; the live state is unchanged
and feed_url is still recorded.
@timmaurice
timmaurice merged commit 9c68791 into master Nov 13, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant