perf: add composite index on (formId, createdAt) for App_RoutingForms_FormResponse (#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>
This commit is contained in:
Keith Williams
2026-02-09 15:49:35 -03:00
committed by GitHub
co-authored by Devin AI
parent 8b17df4621
commit 6a9b1ec3a8
2 changed files with 3 additions and 0 deletions
@@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "App_RoutingForms_FormResponse_formId_createdAt_idx" ON "App_RoutingForms_FormResponse"("formId", "createdAt");
+1
View File
@@ -1360,6 +1360,7 @@ model App_RoutingForms_FormResponse {
@@unique([formFillerId, formId])
@@index([formFillerId])
@@index([formId])
@@index([formId, createdAt])
@@index([routedToBookingUid])
}