Skip to content

Commit 3d7a6d8

Browse files
committed
Add missing indexes on Checkpoint table
1 parent 72cdb5e commit 3d7a6d8

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- CreateIndex
2+
CREATE INDEX CONCURRENTLY IF NOT EXISTS "Checkpoint_attemptId_idx" ON "Checkpoint"("attemptId");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- CreateIndex
2+
CREATE INDEX CONCURRENTLY IF NOT EXISTS "Checkpoint_runId_idx" ON "Checkpoint"("runId");

internal-packages/database/prisma/schema.prisma

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,6 +2246,9 @@ model Checkpoint {
22462246
22472247
createdAt DateTime @default(now())
22482248
updatedAt DateTime @updatedAt
2249+
2250+
@@index([attemptId])
2251+
@@index([runId])
22492252
}
22502253

22512254
enum CheckpointType {

0 commit comments

Comments
 (0)