Skip to content

Commit 6a9b1ec

Browse files
perf: add composite index on (formId, createdAt) for App_RoutingForms_FormResponse (calcom#27252)
* perf: add composite index on (formId, createdAt) for App_RoutingForms_FormResponse Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * chore: add migration for formId, createdAt composite index Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * Update migration.sql --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 8b17df4 commit 6a9b1ec

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- CreateIndex
2+
CREATE INDEX "App_RoutingForms_FormResponse_formId_createdAt_idx" ON "App_RoutingForms_FormResponse"("formId", "createdAt");

packages/prisma/schema.prisma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,7 @@ model App_RoutingForms_FormResponse {
13601360
@@unique([formFillerId, formId])
13611361
@@index([formFillerId])
13621362
@@index([formId])
1363+
@@index([formId, createdAt])
13631364
@@index([routedToBookingUid])
13641365
}
13651366

0 commit comments

Comments
 (0)