Is it worth the trouble to use tinyint instead of int for SqlServer lookup tables?

前端 未结 5 1937
没有蜡笔的小新
没有蜡笔的小新 2021-02-02 11:56

When designing a lookup table (enum) in SqlServer 2005, if you know the number of entries will never get very high, should you use tinyint instead of int? I\'m most concerned a

5条回答
  •  旧时难觅i
    2021-02-02 12:29

    There is also the factor of maintaining the indexes/disk backups/tape backups which will also take up space, but I'd say the most important is IO and memory performance.

提交回复
热议问题