heroku/databasedotcom — Issue #53: Opening multiple connections on the same app
Author: vzmind
Created: 2012-02-07 17:04:20+00:00
State: open

I would like to open multiple connection on the same Rails App. I am using databasedotcom gem (not the rails version). Everything looks find till I actually use the second connection to insert a record.

I am using 2 distinct modules to be sure materialize methods get applied on specific namespaces. I open the first connection with databasedotcom.yml file loaded config and the next ones with a hash.

When reusing the first connection, the app is broken returning an error on existing custom object. After a deeper investigation, my first Databasedotcom::Client object return records from the second one. No way to revert back and re-initialize the first connection.

Is it a known limitation?