Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Very interesting, thank you. Is there a way for me to monitor what Prisma is doing in my use case?


using `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


Awesome, 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 } }))


Pleeeeeease 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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: