docs icon indicating copy to clipboard operation
docs copied to clipboard

Add `findFirst` to list of batchable functions

Open cunisia opened this issue 4 years ago • 1 comments

Apparently, findFirst calls are also batched when occurring in the same tick and having the same where and include parameters. Wouldn't it be good to update the Query Optimization article so that users know about that ?

(I only learnt about it because I wanted to check if batching findMany calls was a soon to come feature. So I searched for the corresponding github issue which fortunately included a link to the issue where findFirst got batched)

cunisia avatar Nov 17 '21 13:11 cunisia

I am not sure this is actually true. findOne (now called findUnique) and findFirst are different things.

janpio avatar May 31 '24 14:05 janpio

Hey @cunisia 👋 thanks for opening this issue! I'm aware that it has been around for a while but we're only now getting to a major cleanup of the docs repo, so apologies for the delay. I'm closing this issue as it seems to be outdated, but please feel free to open other issues in the future if you notice anything that can be improved in the Prisma docs 🙏

ankur-arch avatar Nov 15 '24 15:11 ankur-arch