Skip to content

Commit

Permalink
Add missing indexes on Checkpoint table
Browse files Browse the repository at this point in the history
  • Loading branch information
ericallam committed Oct 28, 2024
1 parent 72cdb5e commit 3d7a6d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX CONCURRENTLY IF NOT EXISTS "Checkpoint_attemptId_idx" ON "Checkpoint"("attemptId");
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX CONCURRENTLY IF NOT EXISTS "Checkpoint_runId_idx" ON "Checkpoint"("runId");
3 changes: 3 additions & 0 deletions internal-packages/database/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -2246,6 +2246,9 @@ model Checkpoint {
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([attemptId])
@@index([runId])
}

enum CheckpointType {
Expand Down

0 comments on commit 3d7a6d8

Please sign in to comment.