Re: one model, multiple database instances
Mario Ruggier <[email protected]> Tue, 10 Aug 2004 12:35:27 +0200
| Newsgroups | gmane.comp.python.modeling |
|---|---|
| Message-ID | <[email protected]> |
On Aug 10, 2004, at 7:47 AM, Sebastien Bigaret wrote: > Delio Brignoli <[email protected]> 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 ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285