Keeping referential integrity across multiple databases

后端 未结 5 1790
一整个雨季
一整个雨季 2021-02-13 16:44

What are the best practices for keeping referential integrity across multiple databases? since there\'s no built-in functions

Or is it better to partition a single datab

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-13 17:50

    You could use triggers to do the job but....
    I am afraid that you will spend an enormous amount of time making sure that everything works. A single database with some partitioned tables may be better. Do you actually need multiple databases or just one database with multiple filegroups spread over physical devices? You may consider that option too. Matej

提交回复
热议问题