Category: Database Animations

Performance Tuning

Database Animations: The Difference Between Row Compression and Page Compression

What's the difference between SQL Server's row compression and page compression, and when does each one make sense?

Row compression turns every fixed-length datatype into a variable-length datatype, using as little space as possible to store it
Page compression does that, AND adds a dictionary of repeated data on the page, getting more compression at the cost of more CPU

Read more about Database Animations: The Difference Between Row Compression and Page Compression 6 comments — Join the discussion

Database Animations: Why Higher Maxdop Equals More TempDB Spills

You've probably heard of the setting Max Degree of Parallelism. I hate that name: it should really be called just plain ol' Degrees of Parallelism, and here's why. There are a lot of conflicting opinions out there about how to set it, and Microsoft has official guidance about it in that article above. It's basically set…

Read more about Database Animations: Why Higher Maxdop Equals More TempDB Spills 8 comments — Join the discussion

Database Animations: You’ve Heard of Page Splits. Here’s What They Really Mean.

You've heard that page splits are bad, and they're an indication that your table design is making your storage work too hard. You've heard that the right answer to fix it is adjusting fill factor lower, or doing regular index maintenance.

Before you watch the below animation, you'll wanna get up to speed with how index seeks work. Then, let's explain page splits with an animation:

Read more about Database Animations: You’ve Heard of Page Splits. Here’s What They Really Mean. 15 comments — Join the discussion