Skip to content
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

How to send a read query to master explicitly? #344

Open
aman199002 opened this issue Feb 3, 2022 · 1 comment
Open

How to send a read query to master explicitly? #344

aman199002 opened this issue Feb 3, 2022 · 1 comment

Comments

@aman199002
Copy link

We are exploring makara for splitting read write queries in our application. We want to send some read queries always to master. In Octopus, same can be achieved with: User.using(:master).count
Can we achieve the same thing in Makara also to forcefully send some read queries to master and others to default i.e replica?

@camol
Copy link

camol commented Nov 21, 2023

Do you managed to get this done for latest makara?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants