ankane / distribute_reads

Scale database reads to replicas in Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: is there a way to configure models to use replicas by default?

v-kumar opened this issue · comments

Similar to what Rails 6.1 does, or your support for ActiveJobs, is it possible to make the models stick to replica by default for reads?

Hey @v-kumar, there's not a way to configure individual models, but you can enable it for all models: https://github.com/ankane/distribute_reads#distribute-reads-by-default