开发者

What is the best way to estimate how much memory a row will require?

开发者 https://www.devze.com 2022-12-27 16:21 出处:网络
I\'m working on a project that will have a single table holding lots and lots of rows on either a SQL Server or SQL Azure installation. I\'m trying to estimate how many rows I can store per GB. Is it

I'm working on a project that will have a single table holding lots and lots of rows on either a SQL Server or SQL Azure installation. I'm trying to estimate how many rows I can store per GB. Is it a matter of simply adding up the memory si开发者_如何学Goze of the individual column data types? Is there other overhead to consider?


  • Estimating the Size of a Table (SQL 2000).
  • Estimating the Size of a Clustered Index (SQL 2005/2008)
  • Estimating the Size of a Nonclustered Index (SQL 2005/2008)
  • Estimating the Size of a Heap (SQL 2005/2008)

If you use Row Versioning, add 14 bytes per row, see Row Versioning Resource Usage.

With SQL 2008 you should consider Page Compression.
With SQL 2008 R2 you need to also consider possibly Unicode Compression.

0

精彩评论

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