Tuesday, November 10, 2026

VOD

On YouTube

Git commits

vod3
  • New StaticVodPlayer component, a React client island rendered on camera-day routes that plays the video using static build-time playlist data (zero @vod/api or database queries). Requires @astrojs/react integration and a revised export format.dde6b18
  • More maintenance-related database optimizations, this time for timestamp work. When finding batches to claim, the query changes from `WHERE state!='published'` to `WHERE state IN ('prepared','pending','complete')` to utilize the existing index instead of scanning all batches. Also when `vod maintain` polls each minute, it logs cached 'published' totals that refresh hourly (instead of recomputing on every run). In testing, idle scans dropped from 10,000 visits per query to zero.c7bc4f1
  • Database optimizations galore for day previews (primarily affecting the maintenance loop). The recording interval-overlap query, formerly `WHERE r.start_utc_ms<day_end AND r.end_utc_ms>day_start`, now uses a fixed 24-hour lookback (`AND r.start_utc_ms>day_start - 24h`) so that the start-time index alone narrows the query to 2 days of recordings (instead of all previous recordings). The 24h is conservative, but if ever a recording covers more than 24h wall time, it will need special treatment. In testing, a synthetic physical-preview scan dropped from 50,000 visits to zero.46d0ae3