Surgical Slave Reads for Ruby on Rails, Mulitple Databases

Hello,

I am currently working on several database rails.
I want to disable SELECT queries on subordinate databases for only some of the databases or specific models.

The problem is that in places we replace the current database connection and put it in another for a short time; for loading luminaires or for processing fragments.

Does anyone have any recommendations for a ruby ​​pearl 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 neat surgical fix.
2. does not monkey around with activerecord.
3. is still being maintained.

      

TIA

-daniel

+2


a source to share





All Articles