Update peewee index migration description

This commit is contained in:
Greg
2026-06-26 12:14:20 -07:00
parent ec1238e723
commit cb15ba5b60
+2 -8
View File
@@ -1,14 +1,8 @@
"""Peewee migrations -- 036_add_perf_indexes.py.
Adds composite/single-column indexes to speed up the most common queries
issued by the web UI on initial page load:
Adds composite/single-column indexes to speed up single-camera queries
issued by the web UI.
- event(camera, start_time DESC): /events list filtered by camera + time range
- reviewsegment(camera, start_time DESC): /api/review filtered by camera + time range
- reviewsegment(end_time): supports the end_time > after half of /api/review's range
The existing event(label, start_time DESC) index from migration 027 already
covers /events/explore, so it is intentionally not duplicated here.
"""
import peewee as pw