Prisma with kysely

Hi, I am using prisma to create schemas and some queries. I know prisma can be slow in serverless function so I was thinking to use kysely for the queries that need the speed. If I have prisma in the trpc context and do not use it will it create a connection? I think not but I want to be sure. So if in some functions I use kysely to query would it make a difference?
2 Replies
Jaaneek
Jaaneek•2y ago
I think you could create another trpc client, I'm not sure if there is a way to interpolate them, I'm also looking for a way to do that, if you get an answer please share it 😄
malgamoe
malgamoeOP•2y ago
Ok thanks, I'll look into that 🙂 I mean at some point I will try, for the moment if anybody has some knowledge I am really curious. What do you mean by interpolate though?
Want results from more Discord servers?
Add your server