How would batching result in a single database query?
On the
httpBatchStreamLink
docs it says that multiple query calls could result in a single database query. How would that work? Should you expect the passed input to possibly be an array to allow for this?
4 Replies
if you use a dataloader for fetching stuff
GitHub
GitHub - graphql/dataloader: DataLoader is a generic utility to be ...
DataLoader is a generic utility to be used as part of your application's data fetching layer to provide a consistent API over various backends and reduce requests to those backends via batc...
prisma does this automatically for
findUnique
https://www.prisma.io/docs/guides/performance-and-optimization/query-optimization-performance#solving-the-n1-problemThank you! Is there some example code for this using trpc?