Should I create separate tables for users and their profiles for a social network database? -


i want design database social network provide profiles users. should use separate tables users , profiles or 1 table users , attributes in it?

if want go big, separate 1 users.

advantage of users , attributes in same table:

  • simpler sql query.
  • if assumer need attributes, there's 1 less join.

advantage of separate tables:

  • in real life, don't need attributes.
  • when need pair other things users don't need attributes.

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -