instacart / makara

A Read-Write Proxy for Connections; Also provides an ActiveRecord adapter.

Home Page:http://tech.taskrabbit.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to send a read query to master explicitly?

aman1mg opened this issue · comments

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?