Skip to content

Keep time-dependent analytics reads scoped to affected sessions - #30

Merged
davidvanleeuwen merged 2 commits into
mainfrom
fix/analytics-future-fast-path
Oct 23, 2026
Merged

davidvanleeuwen merged 2 commits into
mainfrom
fix/analytics-future-fast-path

Conversation

@davidvanleeuwen

@davidvanleeuwen davidvanleeuwen commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Future-dated events becoming visible currently route overview reads through every session's detailed event arrays. Store a materialized visibility deadline per session and combine compact summaries with detailed calculations only for the affected sessions. Deadline-driven refreshes also reuse unaffected session rows instead of rebuilding their entire bucket.

Date-aligned time series use the same split while preserving exact partial-day and historical fallbacks. Per-video completion keeps its precise segment path, including rewinds across midnight. The additive materialized column remains compatible with existing insert statements; format 6 publication prevents readers from using incompatible generations.

Validation: all repository CI checks pass, along with 32 targeted session tests, strict Credo, security enforcement, formatting and precommit checks. Regression comparisons cover overview, unique-watch, time-series, incremental-copy and cross-day rewind correctness, including concurrent reads.

@davidvanleeuwen
davidvanleeuwen marked this pull request as ready for review October 23, 2026 19:56
@davidvanleeuwen
davidvanleeuwen merged commit 6b993eb into main Oct 23, 2026
3 checks passed
@davidvanleeuwen
davidvanleeuwen deleted the fix/analytics-future-fast-path branch October 23, 2026 20:00
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