Skip to content

Commit

Permalink
perf(db): ⚡️ Optimize delete all results query
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jun 24, 2022
1 parent fdf11af commit 64a1655
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- CreateIndex
CREATE INDEX "Answer_resultId_idx" ON "Answer"("resultId");

-- CreateIndex
CREATE INDEX "Log_resultId_idx" ON "Log"("resultId");
3 changes: 3 additions & 0 deletions packages/db/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ model Log {
status String
description String
details String?
@@index([resultId])
}

model Answer {
Expand All @@ -256,6 +258,7 @@ model Answer {
storageUsed Int?
@@unique([resultId, blockId, groupId])
@@index([resultId])
}

model Coupon {
Expand Down

5 comments on commit 64a1655

@vercel
Copy link

@vercel vercel bot commented on 64a1655 Jun 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 64a1655 Jun 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./apps/docs

docs-typebot-io.vercel.app
docs.typebot.io
docs-git-main-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 64a1655 Jun 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 64a1655 Jun 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viewer-v2-alpha – ./apps/viewer

am.nigerias.io
ar.nigerias.io
vhpage.cr8.ai
sat.cr8.ai
bot.aws.bj
bt.id8rs.com
an.nigerias.io
apr.nigerias.io
aso.nigerias.io
apo.nigerias.io
sakuranembro.it
bot.piccinato.co
games.klujo.com
eventhub.com.au
faqs.nigerias.io
chat.sureb4.com
bot.upfunnel.art
feedback.ofx.one
stan.vselise.com
clo.closeer.work
voicehelp.cr8.ai
zap.techadviser.in
gentleman-shop.fr
app.chatforms.net
goalsettingbot.com
this-is-a-test.com
typebot.stillio.com
forms.webisharp.com
bot.ansuraniphone.my
bot.eventhub.com.au
bot.incusservices.com
get.freebotoffer.xyz
chat.hayurihijab.com
bot.cotemeuplano.com
cdd.searchcube.com.sg
bot.meuesocial.com.br
chat.missarkansas.org
apply.ansuraniphone.my
c23111azqw.nigerias.io
felipewelington.com.br
form.searchcube.com.sg
83242573.actualizar.xyz
gcase.barrettamario.it
view.onlinebotdemo.xyz
kodawariab736.skeep.it
info.clickasuransi.com
91181264.your-access.one
form.sergiolimajr.com.br
mainmenu.diddancing.com
serviziaziendali.online
hunterbot.saleshunter.ai
aibot.angrybranding.co.uk
type.opaulovieira.com.br
type.dericsoncalari.com.br
designguide.techyscouts.com
boyfriend-breakup.riku.ai
onboarding.libertydreamcare.ie
agendamento.sergiolimajr.com.br
piazzatorre.barrettamario.it
type.talitasouzamarques.com.br
bookings.littlepartymonkeys.com
bot.comercializadoraomicron.com
personal-trainer.barrettamario.it
preagendamento.sergiolimajr.com.br
viewer-v2-alpha-git-main-typebot-io.vercel.app
viewer-v2-alpha-typebot-io.vercel.app
studiotecnicoimmobiliaremerelli.it

@vercel
Copy link

@vercel vercel bot commented on 64a1655 Jun 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-typebot-io.vercel.app
builder-v2-git-main-typebot-io.vercel.app
app.typebot.io

Please sign in to comment.