C
C#•12mo ago
🙈

is there a point of a one to one relationship.

Is there ever a use case to create a seperate table for a one to one relationship. Because what is the difference of storing it the same table.
6 Replies
Denis
Denis•12mo ago
Imo it helps reduce the bulk of a commonly accessed table by moving some of its columns to a separate table E.g., employee table is one to one matched to an Id card table Idk, first thing that came to my mind I'd assume there are some performance benefits to this, if used correctly
Pobiega
Pobiega•12mo ago
I'd say its pretty rare to have a link table for one-to-one. Much more common is that you just have a foreign key column
FestivalDelGelato
FestivalDelGelato•12mo ago
or an owned object
🙈
🙈OP•12mo ago
thanks
Denis
Denis•12mo ago
$close
MODiX
MODiX•12mo ago
Use the /close command to mark a forum thread as answered

Did you find this page helpful?