Keep notification acknowledgements responsive under snapshot contention #440

Merged
timmy merged 1 commits from timmy/439-notification-snapshot-batch into main 2026-08-10 01:16:03 +00:00
Owner

Closes #439

Product improvement

  • moves confirmed notification snapshot maintenance off the async event loop
  • collapses successful bulk acknowledgements into one SQLite transaction and one revision advance
  • preserves process-local filtering and stale-refresh suppression when shared cache maintenance is contended

Verification

  • RED: missing batch store API
  • RED: snapshot maintenance delayed the event-loop heartbeat
  • RED: partial bulk success produced two store writes instead of one
  • GREEN: python3 -m pytest tests/test_live_snapshot_store.py tests/test_notification_read.py -q (17 passed)
  • FULL: python3 -m pytest -q (852 passed)
Closes #439 ## Product improvement - moves confirmed notification snapshot maintenance off the async event loop - collapses successful bulk acknowledgements into one SQLite transaction and one revision advance - preserves process-local filtering and stale-refresh suppression when shared cache maintenance is contended ## Verification - RED: missing batch store API - RED: snapshot maintenance delayed the event-loop heartbeat - RED: partial bulk success produced two store writes instead of one - GREEN: `python3 -m pytest tests/test_live_snapshot_store.py tests/test_notification_read.py -q` (17 passed) - FULL: `python3 -m pytest -q` (852 passed)
timmy added 1 commit 2026-08-10 01:14:44 +00:00
perf: batch notification snapshot maintenance (#439)
All checks were successful
CI / lint (pull_request) Successful in 49s
CI / build-release (pull_request) Successful in 5s
CI / release-candidate (pull_request) Has been skipped
0a3fb180ed
timmy merged commit cd9f40a1c4 into main 2026-08-10 01:16:03 +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#440
No description provided.