Commit Graph
2 Commits
Author SHA1 Message Date
Claude fd99121408 Pivot per audit: add nginx vod_response_cache, drop premature DB indexes
- Add vod_response_cache (64m) to nginx-vod-module config, directly
  targeting the maintainer-identified bottleneck of manifest/playlist
  generation on historical playback cold opens
- Remove migration 036 (composite recording indexes) — existing indexes
  are already sufficient; schema expansion deferred until profiling
  justifies it

This aligns with the V2 limited-scope patch plan:
  1. nginx VOD response cache (this commit)
  2. vod_ts overlap predicate rewrite (prior commit)
  3. in-process historical mapping memoization (prior commit)
  4. sibling path cleanup in recording_clip (prior commit)

https://claude.ai/code/session_01XeVxvSk9ywyPBR288ZZXWE
2026-03-07 02:27:36 +00:00
Claude 89adfe19e0 VOD overlap query optimization, caching, and refactor
- A1: Rewrite overlap query from OR-based predicate to canonical form
  (end_time > start AND start_time < end) which is index-friendly
- A2: Add composite (camera, start_time, end_time) and (camera, end_time)
  indexes via migration to support the new overlap predicate
- A3: Add bounded LRU in-process cache for historical VOD mapping
  payloads to avoid repeated DB + assembly work on re-opens
- A4: Extract vod_ts internals into query/normalize/payload helpers
  in frigate/api/vod.py for benchmarking and future swapability
- Also update the recording_clip download path to use the same
  canonical overlap predicate

https://claude.ai/code/session_01XeVxvSk9ywyPBR288ZZXWE
2026-03-07 01:26:20 +00:00