SQL design around lack of cross-database foreign key references

前端 未结 9 1075
既然无缘
既然无缘 2020-12-15 05:22

For better or worse, we have a solution that relies on multiple databases that all reference a common administration database. Databases ship as part of modules, and not al

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-15 05:46

    We have such a modularity in our products, but our database requirements are merged together during installtion. For example our admin package and product A may be the initial purchase by a client where they install the two modules into database X. If they later buy product B the database component is layered right on top of database X adding in the DRI where necessary.

    The only case where I have seen the need for separate databases from a design perspective is when you are drawing a hard line between business units (such as a corporation) at which point the issue is really a type of partitioning. Great Plains Dynamics does this where they have a single administrative database, and multiple corporation databases. However each module in GP for a given corporation resides in that single database.

    Of course if you are stuck with separate databases, I would agree that D is the best option.

提交回复
热议问题