Join Slack
Powered by
is it normal for prisma to execute 2 queries inste...
# orm-help
d
Dennis P
04/26/2022, 9:31 PM
is it normal for prisma to execute 2 queries instead of a join in this case?
n
Nurul
04/27/2022, 10:24 AM
Hey Dennis 👋 Yes, Prisma internally uses select statements instead of joins. Here’s the thread which discusses this approach
https://prisma.slack.com/archives/CA491RJH0/p1646982182446919?thread_ts=1646799638.123979&cid=CA491RJH0
🙌 1
p
Paul Kernfeld
04/27/2022, 5:55 PM
Thanks
@Nurul
! Does Prisma by default wrap all queries in a transaction?
n
Nurul
05/04/2022, 3:11 PM
Hey Paul 👋 In case you are referring to queries like createMany, updateMany then yes they are wrapped in a transaction
p
Paul Kernfeld
05/04/2022, 4:06 PM
Awesome thanks!
2
Views
Open in Slack
Previous
Next