开发者

Surgical slave reads for Ruby on Rails, mulitple databases

开发者 https://www.devze.com 2022-12-29 04:30 出处:网络
Greetings, I\'m currently working on a multiple database rails application. I want to off load the SELECT queries on to the slave databases

Greetings,

I'm currently working on a multiple database rails application.

I want to off load the SELECT queries on to the slave databases for only SOME of the databases or specific models.

The issue is that in places, we swap out the current database connection and put in a different one for a short time; to load fixtures or to handle sharding.

Does anyone have any recommendations on a ruby gem that

1. will split select/(sql writes) with a considerable amount of control.
   We want to handle just some models and we are looking for a 开发者_StackOverflow社区neat surgical fix.
2. does not monkey around with activerecord.
3. is still being maintained.

TIA

-daniel

0

精彩评论

暂无评论...
验证码 换一张
取 消