Rails DB based on param
How to specify DB connection for a specific session, based on parameter.
For example, app lives from September to September. after it's live cycle
over last year will be stored in old db, and a new db will be created for
a new live cycle. The api will work like this:
domain.com/2013/#/backbone_urls. in the place of 2013, may be stored any
year, based on what Active record will create connection with particular
db, so all queries for this user was from this db. This may be hard issue,
or wrong solution for this.
No comments:
Post a Comment