开发者

Row with constant length in SQL Server - is it somehow benefitial

开发者 https://www.devze.com 2023-03-20 01:39 出处:网络
I\'m designing table that will serve开发者_运维知识库r as snapshot of data that rarely changes to address performance issues... Anyway, it has to be as fast as it gets. Some time ago I used to do simi

I'm designing table that will serve开发者_运维知识库r as snapshot of data that rarely changes to address performance issues... Anyway, it has to be as fast as it gets. Some time ago I used to do similar thing with MySQL and in that database engine it was beneficial in terms of performance to design table with constant row length (no NULL columns + storing strings in nchar). Is it the same with SQL Server ?

Thanks,Pawel


did you use the myisam table format?

if so, the records are really the same length (and retrieving a record is simple for the database: headersize + (recordsize * recordnumber) - > really dammned fast (of course, after reading the index ...)

afaik the mssql server uses a "paged" storage format - if so, you will gain no performance boost.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号