-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specifying the name of the replica with the distribute_reads method #37
Comments
Hey @fabienpiette, there's not currently an option for it, but happy to consider it if someone finds a simple way to implement it. Do you have a specific use case in mind? |
Okay no problem, I'll try to see if it can be set up easily. With ActiveAdmin I could do something like that:
And something along the same lines for jobs.
|
One way I've seen work well is having a single replica in |
Just wanted to say that this feature would be awesome! For my use case, we're transitioning from a larger, more expensive DB instance to a smaller one. Being able to specify which read replica a specific piece of code should hit would be huge as it makes our performance monitoring/benchmarking super straightforward. |
Hello,
With the configuration below, is it possible to specify the name of the replica used when calling the distribute_reads method? The idea is to be able to choose on which replica I want to make SELECT queries.
Something like this:
or
Thank you in advance for your answers.
The text was updated successfully, but these errors were encountered: