Quick question on how I setup my mysql database(s)...
If my setup is such that I have multiple clients, and each client gets
10 tables to store their data, is it better for performance if I put all
of these tables into 1 large database (with a unique identifier
prepended to each one) or create a separate database for each client?
i.e., assuming 1000 clients, I either would have:
A) 1 database and 10,000 tables in it, 10,000 total tables
B) 1000 databases with 10 tables in each, 10,000 total tables
Intuition tells me that the multiple databases would be better for
isolating data between clients, but I am not sure if this would slow
things down.
All the info I found on this online was inconclusive and mostly was
people speculating, so I hoped you all could help more. Thanks!!
Marcus
If my setup is such that I have multiple clients, and each client gets
10 tables to store their data, is it better for performance if I put all
of these tables into 1 large database (with a unique identifier
prepended to each one) or create a separate database for each client?
i.e., assuming 1000 clients, I either would have:
A) 1 database and 10,000 tables in it, 10,000 total tables
B) 1000 databases with 10 tables in each, 10,000 total tables
Intuition tells me that the multiple databases would be better for
isolating data between clients, but I am not sure if this would slow
things down.
All the info I found on this online was inconclusive and mostly was
people speculating, so I hoped you all could help more. Thanks!!
Marcus
Comment