P
Prisma•2mo ago
Austin

Read Only database

Hello my application is build with blitzjs. I'm having trouble using the read replica with enhancePrisma(PrismaClient) because it doesn't expose extends method and I use it because thats how blitz integrates with prisma and I get an error when trying to just use PrismaClient()...So my goal is to have my main write database and read only database for certain queries. I wanted to know if there is another way to use read only databases than read replicas?
2 Replies
Nurul
Nurul•2mo ago
Hey 👋 Can you share a code snippet on what you are trying and what error you get?
Yetzederixx
Yetzederixx•2mo ago
https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/read-replicas I found this. You'd think there'd be a connection string flag you could send in, but I'll be darned if I can find more than a fleeting mention of one.
Read replicas | Prisma Documentation
Learn how to set up and use read replicas with Prisma Client
Want results from more Discord servers?
Add your server