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

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -