Multi-Tenant Database design - Database for each user

混江龙づ霸主 提交于 2019-12-06 02:11:06

I would use a single database for sure. Use the following to get started. There are several reasons to go with a single db, however the biggest reason of all is to save you from a maintenance nightmare. If you have to change the schema, you will have a mess on your hands.

http://msdn.microsoft.com/en-us/library/aa479086.aspx

Mike Sherrill 'Cat Recall'

In a multi-tenant database, database designers think about querying, cost, data isolation and protection, maintenance, and disaster recovery.

Multi-tenant solutions range from one database per tenant ("shared nothing") to one row per tenant ("shared everything"). This SO answer summarizes the tradeoffs. If you're designing a database that falls under some kind of regulatory environment (HIPAA, FERPA, etc.), that regulatory environment might trump all other considerations.

One database per tenant is a defensible decision in some cases. It's not clear whether that's the best answer in your case, though.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!