Consider a data structure, such as below, where the user has a small number of fixed settings.
[Id] INT IDENTITY NOT NULL, [Name] NVARCHAR(MAX) NOT NULL, [Email] VNARCHAR(2034) NOT NULL
[SettingA], [SettingB], [SettingC]
Is it considered correct to move user settings to a separate table, thereby creating a one-to-one relationship with the user table? Does this have any real advantage over storing on the same line as the user (the obvious drawback is performance).
1:1 , (.. ). . 100 .
, . , , , . , ? . . , , ? , , , , . .
, , , 150 , .
- . .
, 1:1, .
: () .
, . , 1:1, . , , - , . , , , . , , , , .
, : " , ?" , , , 1:1.
1-1 . , , , .
, / . . , , .
. , .
, "" , SQL. , :
. , " ". , , , .
1:1 , :
1:1, , " ". , , AFAIK, . 1:1 , .
, , , , , . , 1:1.
( Thorsten/Mike. "", - , 6NF, , , ).
:) .
, , 1:1 -.
, ( 1-1 " "). . .. ..
, /
, , "- " . , ( ) .
UserSettings
[Settings_ID] [User_ID] [Settings]
, [Email].
Source: https://habr.com/ru/post/1546281/More articles:Custom Provider in URL Rewriter - azureclock_gettime () returns about 1-2 ms of inaccuracy every 50-100 ms (Debian wheezy on Virtualbox) - c ++Xmpp bookmark auto-replace option not working - publish-subscribeHow to list MSSQL servers from a 64-bit client application? - sql-serverclock_gettime () returns bad results (Debian wheezy on VirtualBox) - c ++What is the recommended workflow using liquibase and git? - javaHow can I implement automatic connection for XMPP room in iOS - iosUncaught TypeError: Невозможно прочитать свойство "replace" из undefined с помощью KendoTreeView` - kendo-uiHow to implement the "last seen" functionality (for example, whatsapp) in XMPP? - xmppNo inaccessibility of user A when user B is also inaccessible - xmppAll Articles