Skip to content

Commit 40df163

Browse files
authored
chore(db): drop the job log schedule index the occurrence unique index covers (#9398)
1 parent 093c50e commit 40df163

4 files changed

Lines changed: 31772 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- job_execution_logs_schedule_occurrence_unique (schedule_id, occurrence_at) leads with
2+
-- schedule_id, so it serves every lookup and FK check the single-column index did.
3+
COMMIT;--> statement-breakpoint
4+
SET lock_timeout = 0;--> statement-breakpoint
5+
DROP INDEX CONCURRENTLY IF EXISTS "job_execution_logs_schedule_id_idx";--> statement-breakpoint
6+
SET lock_timeout = '5s';

0 commit comments

Comments
 (0)