开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜