What is the suggested way to use read replicas with prisma? I see there are some proposed solutions with open issues.
✅ 1
h
hayes
08/21/2022, 9:19 PM
You can pass a connection string when you create a client instance. I generally just create separate read and write client instances
j
Jay Bell
08/21/2022, 10:47 PM
I was wondering if I could do that! Thank you! Way easier!!
n
Nurul
08/22/2022, 10:54 AM
Just for reference: Here’s the official feature request for supporting read replica natively #172
For now, creating separate PrismaClients would be ideal.