June 11, 2011 at 9:28 pm
Comments posted to this topic are about the item Page Compression
June 12, 2011 at 2:47 am
Great question, with subtle differences between the answers 🙂
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 12, 2011 at 11:55 am
Koen Verbeeck (6/12/2011)
Great question, with subtle differences between the answers 🙂
I agree with you, it is a little tough to get this answer right 🙂
M&M
June 13, 2011 at 1:38 am
This was removed by the editor as SPAM
June 13, 2011 at 2:25 am
I thought I had the correct answer, but the subtlety of the question caught me out.
June 13, 2011 at 6:36 am
Excellent question.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
June 13, 2011 at 7:01 am
Good question.
But one major niggle and one minor niggle:
Major niggle: if page compression is enabled on a table already containing data, each page is rebuilt and evaluated for page compression; page compression can occur here (unless I've got it wrong) and may make the data fit into fewer pages than if only row compression occurred. So the answer always applies to pages which are empty/unallocated when compression is enabled, but not always to pages which already contain data when compression is enabled.
Minor niggle: page compression won't occur even when a new row doesn't fit if the engine determines that page compression would not free up a significant amount of space.
edit: SCTEs
Tom
June 13, 2011 at 7:41 am
This question is little tricky i.e When compression is enabled on server then only
page compression can occur .if page compression is not enabled and if page is full and a new row is added then compression may not worked .
June 13, 2011 at 9:16 am
Tom.Thomson (6/13/2011)
Good question.But one major niggle and one minor niggle:
Major niggle: if page compression is enabled on a table already containing data, each page is rebuilt and evaluated for page compression; page compression can occur here (unless I've got it wrong) and may make the data fit into fewer pages than if only row compression occurred. So the answer always applies to pages which are empty/unallocated when compression is enabled, but not always to pages which already contain data when compression is enabled.
Minor niggle: page compression won't occur even when a new row doesn't fit if the engine determines that page compression would not free up a significant amount of space.
edit: SCTEs
Fair points. I've added a note that this is after the initial page compression setting.
June 13, 2011 at 10:34 am
Missed it! But learned some important detail.
Great question!
Peter Trast
Microsoft Certified ...(insert many literal strings here)
Microsoft Design Architect with Alexander Open Systems
June 13, 2011 at 10:59 am
Nice question!
See Data Compression: Strategy, Capacity Planning and Best Practices in ( http://msdn.microsoft.com/en-us/library/dd894051%28v=sql.100%29.aspx )
June 13, 2011 at 12:36 pm
Good question and great topic, thanks.
June 13, 2011 at 7:26 pm
Steve, this is a really good question. Thanks!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
June 13, 2011 at 8:53 pm
Tom.Thomson (6/13/2011)
Good question.But one major niggle and one minor niggle:
Major niggle: if page compression is enabled on a table already containing data, each page is rebuilt and evaluated for page compression; page compression can occur here (unless I've got it wrong) and may make the data fit into fewer pages than if only row compression occurred. So the answer always applies to pages which are empty/unallocated when compression is enabled, but not always to pages which already contain data when compression is enabled.
Minor niggle: page compression won't occur even when a new row doesn't fit if the engine determines that page compression would not free up a significant amount of space.
edit: SCTEs
Thanks Tom for adding these points, very useful really.
M&M
Viewing 14 posts - 1 through 13 (of 13 total)
You must be logged in to reply to this topic. Login to reply