Ask HN: Best way to handle user profile data?
Almost every web application now allows you to setup a basic profile (Even Stack Exchange does). The question is how should you be storing the data in your database?
Should you just add more columns to your users database table, or should you setup another table called user_profiles that has a foreign key of user_id?
2 comments
[ 4.6 ms ] story [ 12.3 ms ] threadI think in the majority of cases you can have that data in one table (although you will most likely require normalization for some other types of info - address, contacts, etc.). I would only think about moving some columns out of users table if they are too heavy and I have many millions of users.