[Rails] Maintain connections to two databases

2010-09-20 Thread michael_teter
Howdy. My app is required to perform some user-driven CRUD operations on two databases simultaneously. This is not the normal situation, but it applies to a low-activity admin controller. My current solution involves three models - DbDual, DbPrimary, and DbSecondary. DbDual uses the other two

Re: [Rails] Maintain connections to two databases

2010-09-20 Thread radhames brito
wild guessing, i think rails is single threaded and if you make a connection persistent you will eat all the resources in no time. I believe passenger loads a rails app per connection but as soon as the client it served the the app gets unloaded, but if the connection is permanent i think the app