There is database of users.
Let's say that I want to support that some users can have multiple OpenID's and use them to log in and let's say that I want to partition Users in to the multiple databases.
Is there some solution for this ? StackOverflow supports two OpenIDs per user, how would they do this?
If the users could use only one OpenID, there would be multiple choices for partitioning. With multiple OpenIDs I have two tables with 1-n relation.
Is there some algorithm to do efficient Partitioning in this case?
Update As Noon Silk mentioned, the problem is not specific to OpenID. I am just interested in partitioning and I am mentioning OpenID because it may be relevant in this case for creating mapping function.
To try to put it as a generic problem.
I have two tables A and B with relation n to 1. Are there some rules/recommendations how to do partitioning in this case so that complete information is in one database ?
if
A1 is related to B1
A2 is related to B1
A3 is related to B1
A4 is related to B2
A5 is related to B2
how to put A1-A3 and B1 in one database and A4-A5 and B2 in another database ?