Google Contacts lets you to enter more than one phone number, or email address for a contact. You can add as many as you want. I don't know if there is a limit, other than practical list size. To build this type of structure I normally create a table with userid
, key
, and value
fields, so a user can keep an unlimited number of records.
I've read that key-value table design performance is low and they do not suggest it. I have not used this type of structure for more than 50-100 users. At the moment, I am working on a big project and I need to keep information about accounts.
Without Key-Value pairs, I will define lots of fields to keep information of each account. I need a new kind of field later, I will add it for all account records.
I need ideas / sources / documents about how big businesses are building this type of structure.
For now, I expect to reach 2000-3000 customers in next 3 years. I normally use MySQL and PHP.
P.S. Each account will have at least 5 different kinds of information to start. In time, this will increase according to requirements.