I'm running into an issue where findUnique() in co...
# orm-help
j
I'm running into an issue where findUnique() in combination with the fluent api is not batching requests resulting in N+1 queries to the db causing a significant impact on performance. From what I understand the batching is supposed to be happening automatically. Could someone help me to debug? Screenshot of logs in thread:
n
Is this happening on the latest
@prisma/client
version?
j
Yes
@Nurul
This problem is still persisting , any help would be greatly appreciated. As it stands, the query is taking upwards of 10 seconds to resolve given ~250 records to return. Which is a fair amount, but shouldn't be unusable
n
Is your code in a public repository? So that I could try to reproduce on my end?