multi-tenant

What are the advantages of using a single database for EACH client?

落花浮王杯 提交于 2019-11-26 09:15:06
问题 In a database-centric application that is designed for multiple clients, I\'ve always thought it was \"better\" to use a single database for ALL clients - associating records with proper indexes and keys. In listening to the Stack Overflow podcast, I heard Joel mention that FogBugz uses one database per client (so if there were 1000 clients, there would be 1000 databases). What are the advantages of using this architecture? I understand that for some projects, clients need direct access to

How to create a multi-tenant database with shared table structures?

久未见 提交于 2019-11-26 08:39:54
问题 Our software currently runs on MySQL. The data of all tenants is stored in the same schema. Since we are using Ruby on Rails we can easily determine which data belongs to which tenant. However there are some companies of course who fear that their data might be compromised, so we are evaluating other solutions. So far I have seen three options: Multi-Database (each tenant gets its own - nearly the same as 1 server per customer) Multi-Schema (not available in MySQL, each tenant gets its own

Multiple schemas versus enormous tables

浪尽此生 提交于 2019-11-26 04:25:40
问题 Consider a mobile device manager system that contains information for every user such as a table that stores the apps that he has installed on the phone, auditing details, notification information etc. Is it wise to create a seperate schema for each user with the corresponding tables? The number of tables is large for a single user amounting to about 30 tables each. Would it be better to have a seperate schema where all this information is placed into these tables (in turn creating enormous