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?

aman199002 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?

Do you managed to get this done for latest makara?