3 ms·
Very interesting, thank you. Is there a way for me to monitor what Prisma is doing in my use case?
by brap 6y ago
Very interesting, thank you. Is there a way for me to monitor what Prisma is doing in my use case?
- dickfickling 6y agousing `new PrismaClient({ log: ["query"] });` it'll log all the actual sql queries it's running, so you'll be able to see if queries are being combined
- brap 6y agoAwesome, thanks! Turns out Prisma wasn’t optimizing my queries, I think it has to do with me not using the sub query API and instead querying tables seperately (e.g posts.findMany({ where: { owner: user } }))
- Sujan 6y agoPleeeeeease open an issue if you have a simple reproduction for this. That will make sure we will make sure this _does_ work (sooner or later, not committing to a timeline here on HN of course :p).