mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
- Hold the managed-profile lock through every provider send\n- Add the notification event retention index and race coverage
6 lines
297 B
SQL
6 lines
297 B
SQL
-- v1.37.0 — notification event retention deletes globally by created_at.
|
|
-- The dedup lookup index starts with record_user_id, so it cannot serve this
|
|
-- trailing-edge cleanup predicate efficiently.
|
|
CREATE INDEX "notification_events_created_at_idx"
|
|
ON "notification_events" ("created_at");
|