MySQL Forums
Forum List  »  Newbie

Re: Partitioning Approach for multi-tenant db
Posted by: Rick James
Date: February 20, 2015 01:13PM

The PARTITION feature does none of the things you want.

Do you have any queries that span multiple SiteIDs?

If not, then simply give each Site its own DATABASE. The tables will independently have AUTO_INCREMENT as you request. There will be no performance gain (but PARTITION would not do that either).

To "rightfully declare that each client's data is separated from other clients", give connect to the one DATABASE that the client belongs to.

For the few queries that need cross-database queries, have another login, etc. This will partially "separate" things, but could also open the door to hacking.

You _do_ have an API layer between the users and the database, correct? That layer is your main line of defense for "separating" the clients; the DATABASE separation is secondary.

Options: ReplyQuote


Subject
Written By
Posted
Re: Partitioning Approach for multi-tenant db
February 20, 2015 01:13PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.