Skip to content

Commit

Permalink
perf: add index to projectid on scores (#2028)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcklingen committed May 9, 2024
1 parent b68d153 commit 1d76ef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX CONCURRENTLY "scores_project_id_idx" ON "scores"("project_id");
1 change: 1 addition & 0 deletions packages/shared/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ model Score {
@@unique([id, traceId]) // used for upsert
@@index(timestamp)
@@index([value])
@@index([projectId])
@@index([traceId], type: Hash)
@@index([observationId], type: Hash)
@@index([source])
Expand Down

0 comments on commit 1d76ef3

Please sign in to comment.