ab3290
PPrisma
•Created by ab3290 on 5/2/2024 in #help-and-questions
findMany query is failing as it's breaching planetscale's 100k limit but rawquery is working fine
Is findMany fetch all records before it applies distinct condition?
await prisma.table.findMany({
distinct: ['field']
})
is failing with planetscales 100k limit but
await prisma.$queryRaw
SELECT DISTINCT field FROM Table
;
is passing, why?
Actual number of records returned with raw query is 7k.
Thanks.
version : 5.11.01 replies