2
0

🗃️ Write faster prisma queries

This commit is contained in:
Baptiste Arnaud
2022-12-08 11:02:52 +01:00
parent fe8a531715
commit 7eac2c7110
23 changed files with 235 additions and 134 deletions

View File

@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX IF NOT EXISTS "Result_typebotId_idx" ON "Result"("typebotId");

View File

@ -224,6 +224,7 @@ model Result {
answers Answer[]
logs Log[]
@@index([typebotId])
@@index([typebotId, createdAt])
@@index([createdAt, typebotId])
}