users table and user_details table? Bad form?

Поиск
Список
Период
Сортировка
От plu tard
Тема users table and user_details table? Bad form?
Дата
Msg-id BAY108-W5986A92CFB3445910A1B5A6770@phx.gbl
обсуждение исходный текст
Ответы Re: users table and user_details table? Bad form?  ("Sean Davis" <sdavis2@mail.nih.gov>)
Список pgsql-novice
I have a users table that's getting pretty large (~ 2M rows) and that's
very sparse, because most users register but don't do much, so a lot
of the columns are NULL.

I'm thinking of adding a user_details table with a unique foreign key
constraint to the users table, and moving all those rarely populated
columns into it. A row in user_details would only be created it we need
to populate one or more of the columns in there.

Is that an okay idea?

It doesn't violate any normalization rules, does it?
And in practice, does it cause any problems?

Thanks.




You keep typing, we keep giving. Download Messenger and join the i’m Initiative now. Join in!

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Григорий Никоноров"
Дата:
Сообщение: Re: psql: FATAL: Ident authentication failed for user "jira"
Следующее
От: "Sean Davis"
Дата:
Сообщение: Re: users table and user_details table? Bad form?