Re: Multiple databases an EOModel.

2012-12-21 Thread Larry Mills-Gahl
Ramsey is right. There are lots of pitfalls. Losing FK constraints is a pain and I miss it, but it's something I can deal with … not ideal, but not a killer. Reassigning IDs and merging data is the biggest problem and we are helped by the fact that most of our data comes to us and is loaded from

Re: Multiple databases an EOModel.

2012-12-20 Thread Miguel Torres
I think you are right Ramsey, I already have the two databases and the project works well, but now I want to implement the solution for more that one enterprise and I am facing some troubles. Maybe I should evaluate to migrate all to one database. Thanks. Miguel Torres On 20/12/2012, at 18

Re: Multiple databases an EOModel.

2012-12-20 Thread Ramsey Gurley
You lose FK constraints that way too. I would not break up the database if you need relationships between the models. That includes in the future. Even if you don't have relationships, think about what happens when a client with more than one enterprise wants to move data between the two databa

Re: Multiple databases an EOModel.

2012-12-20 Thread Miguel Torres
Thanks Pascal. I downloaded the application, I am trying to understand how it works but it is not clear to me. I will study it. Thanks for the hint. Miguel Torres. On 20/12/2012, at 17:56, Pascal Robert wrote: > Use this: > > https://github.com/hprange/multi-tenant-prototype > >> Hi list,

Re: Multiple databases an EOModel.

2012-12-20 Thread Miguel Torres
Hi Micheal, Do you have any code to share that shows how to change the data base connection information of the model on the fly? On 20/12/2012, at 18:01, Michael Gargano wrote: > yes, I'm doing that now. just be aware that cross db joins are a b*tch. if > there are to many relations to

Re: Multiple databases an EOModel.

2012-12-20 Thread Michael Gargano
yes, I'm doing that now. just be aware that cross db joins are a b*tch. if there are to many relations to join across you will quickly hit limitations with IN clauses (which will be your best friend). unless someone else has come up with something more clever than what I'm doing -Mike On D

Re: Multiple databases an EOModel.

2012-12-20 Thread Pascal Robert
Use this: https://github.com/hprange/multi-tenant-prototype > Hi list, > > We are developing an ERP application. > We want to use the following approach: > > One database to storage users, access control rules, application > configuration and an enterprises catalog. > > For each enterprise we

Multiple databases an EOModel.

2012-12-20 Thread Miguel Torres
Hi list, We are developing an ERP application. We want to use the following approach: One database to storage users, access control rules, application configuration and an enterprises catalog. For each enterprise we want to set up a different database. For example: One ERP controlling informa