Skip to content

Commit c332519

Browse files
committed
v3: Add a much needed index on TaskEvent.spanId
1 parent 52112c3 commit c332519

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- CreateIndex
2+
CREATE INDEX "TaskEvent_spanId_idx" ON "TaskEvent"("spanId");

packages/database/prisma/schema.prisma

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,6 +1904,8 @@ model TaskEvent {
19041904
19051905
/// Used on the run page
19061906
@@index([traceId])
1907+
/// Used when looking up span events to complete when a run completes
1908+
@@index([spanId])
19071909
}
19081910

19091911
enum TaskEventLevel {

0 commit comments

Comments
 (0)