views:

29

answers:

1

I have to make a design decision with regards to fields in the database.

Given:

  • users table

Problem:

Visually we have a check box that says:

[*] check this box to not show this again

Should this data(boolean) be saved in the users table in a column or in a new joint table that has the user_id?

Which one scales better? faster?

+2  A: 

Depends on your users table, but generally the performance difference here with good indexing is negligible at almost any scale.

At most you should only be grabbing this kind of info once at login to set as a session var / cookie / etc.

AvatarKava