westoque
westoque

Reputation: 417

Which one scales better?

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

Given:

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?

Upvotes: 0

Views: 74

Answers (1)

AvatarKava
AvatarKava

Reputation: 15443

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.

Upvotes: 2

Related Questions