Database Design - Multiple Lookup/Enum Tables or One Large Table?

前端 未结 4 1592
别跟我提以往
别跟我提以往 2020-12-15 22:17

I have many tables that use Lookup/Enum references for most of their column values. For example:
Person Table - PersonID | RaceCode | HairColorCode | HairStyleC

4条回答
  •  没有蜡笔的小新
    2020-12-15 22:38

    There's a potential performance difference.

    A table with just 2 rows ties up a lot of space in cache for those two tiny rows.

    If you have a lot of lookup values in a single table, you -- effectively -- pack those values more densely into cache.

提交回复
热议问题