Commit Graph
2 Commits
Author SHA1 Message Date
Jack DangerandGitHub bd5997e464 Merge 6169339167 into e2ce0c82ff 2026-06-27 20:43:41 -07:00
Jack Danger 6169339167 Avoid full-table scan in /recordings/unavailable
The query filtered on (end_time >= after AND start_time <= before). With
before defaulting to now, start_time <= before matches every row, so SQLite
range-scans the entire recordings table for any window. Add a start_time lower
bound (segments are short, so a recording overlapping the window starts within
an hour of it). Also fix a 500 on cameras=all, where cameras was reassigned to a
list and later .split().
2026-06-27 23:49:20 +00:00