🗃️ Write faster prisma queries
This commit is contained in:
@ -0,0 +1,2 @@
|
||||
-- CreateIndex
|
||||
CREATE INDEX IF NOT EXISTS "Result_typebotId_idx" ON "Result"("typebotId");
|
@ -224,6 +224,7 @@ model Result {
|
||||
answers Answer[]
|
||||
logs Log[]
|
||||
|
||||
@@index([typebotId])
|
||||
@@index([typebotId, createdAt])
|
||||
@@index([createdAt, typebotId])
|
||||
}
|
||||
|
Reference in New Issue
Block a user