Join Slack
Powered by
Quick question, does Prisma support query batching...
# orm-help
s
Sébastien Dubois
02/04/2021, 6:12 PM
Quick question, does Prisma support query batching? I'm wondering about how to deal with the N+1 query issue with GraphQL / nexus & Prisma
j
Joël
02/04/2021, 6:26 PM
So under the hood we have a dataloader for findUnique queries (but not multiple findMany queries)
Joël
02/04/2021, 6:26 PM
https://github.com/prisma/docs/issues/252
Joël
02/04/2021, 6:27 PM
This is a video where my colleague explains it
https://www.youtube.com/watch?v=7oMfBGEdwsc
▾
s
Sébastien Dubois
02/04/2021, 6:27 PM
Great, exactly what I was looking for!
Sébastien Dubois
02/04/2021, 6:27 PM
Thanks!
💯 1
j
Joël
02/04/2021, 6:28 PM
De rien 🙂
s
Sébastien Dubois
02/04/2021, 6:28 PM
😉
france parrot
1
d
Dick Fickling
02/04/2021, 6:40 PM
@Sébastien Dubois
if you're successful in getting query batching to work, can you let me know? I've been stuck (
https://github.com/prisma/prisma/issues/5274
and
https://github.com/prisma/prisma-examples/issues/2464
)
🙌 1
s
Sébastien Dubois
02/04/2021, 6:44 PM
Sure
Open in Slack
Previous
Next