This commit is contained in:
Josh Hawkins 2026-03-09 18:11:04 -05:00
parent bcf0705132
commit 5187686915

View File

@ -98,8 +98,6 @@ def all_recordings_summary(
days: dict[str, bool] = {} days: dict[str, bool] = {}
for period_start, period_end, period_offset in dst_periods: for period_start, period_end, period_offset in dst_periods:
# Use integer division instead of strftime(datetime(...)) — orders of
# magnitude cheaper per row and avoids a temp B-tree for GROUP BY.
day_expr = ((Recordings.start_time + period_offset) / 86400).cast("int") day_expr = ((Recordings.start_time + period_offset) / 86400).cast("int")
period_query = ( period_query = (