Skip to content

Commit d4c6d06

Browse files
committed
Add runTags gin index
1 parent a86417c commit d4c6d06

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CREATE INDEX CONCURRENTLY IF NOT EXISTS "TaskRun_runTags_idx" ON "TaskRun" USING GIN ("runTags" array_ops);

internal-packages/database/prisma/schema.prisma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ model TaskRun {
682682
// Finding runs in a batch
683683
@@index([runtimeEnvironmentId, batchId])
684684
@@index([runtimeEnvironmentId, createdAt(sort: Desc), id(sort: Desc)])
685+
@@index([runTags(ops: ArrayOps)], type: Gin)
685686
}
686687

687688
enum TaskRunStatus {

0 commit comments

Comments
 (0)