Eco 🌤
DTDrizzle Team
•Created by Eco 🌤 on 2/12/2025 in #help
Primary and Replica Query Load Balancing
https://orm.drizzle.team/docs/read-replicas
I have a setup for 1 primary and 1 replica. I have it configured similarly to the docs and can confirm that queries are going into the replica. The issue I have at the moment is that all queries are going into the replica, and I want it to be like 70% using the replica while 30% uses the primary. It seems like the configuration only allows weighted decisions based on replicas, not including the primary.
1 replies
DTDrizzle Team
•Created by Eco 🌤 on 11/23/2024 in #help
Read Replica Health Check
Is there a way to health check read replica or not needed because it switches to primary?
also is there a better way to check if connection is working properly? at the moment I query a table.
1 replies
DTDrizzle Team
•Created by Eco 🌤 on 10/14/2024 in #help
How to automatically run migration on NextJS start

5 replies
DTDrizzle Team
•Created by Eco 🌤 on 8/14/2024 in #help
can we have production migrations recommendations docs for drizzle?

2 replies
DTDrizzle Team
•Created by Eco 🌤 on 7/25/2024 in #help
separating relations to different file results in typescript issues
I have updated my config to this and just move the relations to relations.ts
It results in this kind of type error.
3 replies
DTDrizzle Team
•Created by Eco 🌤 on 7/6/2024 in #help
Is it possible to return has many relationship load to return a single object instead of an array.
output
desired output
2 replies
DTDrizzle Team
•Created by Eco 🌤 on 5/26/2024 in #help
How to properly infer type or add typings of a returned model with relationship in a component props
getCart.tsx
page.tsx
cart-summary.tsx
6 replies