Avoid decoding unchanged live snapshots on every poll #520

Merged
timmy merged 1 commits from timmy/519-metadata-only-live-polls into main 2026-08-10 22:56:36 +00:00
Owner

Closes #519

What changed

  • add a SQLite metadata-only snapshot read that excludes value_json
  • retain a warm worker's process-local snapshot when shared generation and section revisions match
  • continue synchronizing freshness, retry, and refresh-lease metadata on every poll

TDD evidence

  • RED: metadata API test failed with missing load_metadata; warm-poll test observed 10 full loads and 0 metadata loads
  • GREEN: focused live/store/notification suite: 39 passed
  • full suite: 1053 passed
  • compileall and git diff --check passed
Closes #519 ## What changed - add a SQLite metadata-only snapshot read that excludes `value_json` - retain a warm worker's process-local snapshot when shared generation and section revisions match - continue synchronizing freshness, retry, and refresh-lease metadata on every poll ## TDD evidence - RED: metadata API test failed with missing `load_metadata`; warm-poll test observed 10 full loads and 0 metadata loads - GREEN: focused live/store/notification suite: 39 passed - full suite: 1053 passed - `compileall` and `git diff --check` passed
timmy added 1 commit 2026-08-10 22:54:33 +00:00
perf: reuse unchanged live snapshot values (Closes #519)
All checks were successful
CI / lint (pull_request) Successful in 1m6s
CI / build-release (pull_request) Successful in 5s
CI / release-candidate (pull_request) Has been skipped
fdcd0d31ab
timmy merged commit 8907263760 into main 2026-08-10 22:56:36 +00:00
timmy deleted branch timmy/519-metadata-only-live-polls 2026-08-10 22:56:36 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#520
No description provided.