Re: [Modeling-users] one model, multiple database instances
Status: Abandoned
Brought to you by:
sbigaret
From: Mario R. <ma...@ru...> - 2004-08-10 10:35:20
|
On Aug 10, 2004, at 7:47 AM, Sebastien Bigaret wrote: > Delio Brignoli <in...@dr...> wrote: >> Hello, >> >> I'm evaluating the use of modeling for our new project(s) and was >> wondering if some of you could give me pointers on how to access >> multiple database instances of the same model in the same >> application. (I understand that each database instance will be >> isolated and don't expect to insert object from an objectStore into >> another) After creating my first model definition and 30 minutes dive >> in the docs, it seems I'll have to create an EC passing a 'properly >> crafted' :-) ObjectStore instance. Am I on the right track? > > Without more details, I guess you intend to do some load-balancing > between db-instances in aread-only app., right? Another situation in which this could apply is for migrating from one db+model to another... a little modeling mapping code could read from one EC and populate another that uses a modified model. This may not be the most efficient to way to do this, but possibly the most flexible and one that would guarantee data integrity and consistency the most. Any opinions on whether this would be a good idea or not? mario |