Skip to content

Commit 7932a05

Browse files
committed
Add parentSpanId index to the TaskRun table
1 parent d538eca commit 7932a05

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- CreateIndex
2+
CREATE INDEX CONCURRENTLY IF NOT EXISTS "TaskRun_parentSpanId_idx" ON "TaskRun"("parentSpanId");

packages/database/prisma/schema.prisma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,6 +1782,7 @@ model TaskRun {
17821782
@@index([scheduleId])
17831783
// Run page inspector
17841784
@@index([spanId])
1785+
@@index([parentSpanId])
17851786
// Finding completed runs
17861787
@@index([completedAt])
17871788
}

0 commit comments

Comments
 (0)