Indexing and Statistics

Designing, evaluating, maintaining, and troubleshooting indexes and statistics.

568 associated posts270 primary posts

Production DBA

How to REALLY Compress Your SQL Server Backups

StackOverflow's database servers are hosted in a colo facility. They pay by the byte for transfer in and out of their servers, so it's really crucial to compress the database backups as much as possible. The smaller the backups, the less they pay. They're already using backup compression, but they wanted to explore more ways to cut their backup sizes.

Read more about How to REALLY Compress Your SQL Server Backups 45 comments — Join the discussion

Index Fragmentation Findings: Part 2, Size Matters

Last week, I blogged about the basics of SQL Server index fragmentation: why it happens, how to fix it, and how often people are fixing it.  I left you with a cliffhanger: it seemed that the frequency of defrag jobs didn't appear to affect fragmentation levels:

Databases with no index defragmentation were an average of 5% fragmented
Monthly - 17% fragmented
Weekly - 3% fragmented
Daily - 6% fragmented

Read more about Index Fragmentation Findings: Part 2, Size Matters 11 comments — Join the discussion

SQL Performance Tuning: Estimating Percentage Improvements

When I'm doing performance tuning on an application in the early stages of its lifecycle (or any app that's never had DBA attention before), I end up with a ton of recommendations within the first day of performance tuning.  The resulting to-do list can seem overwhelming to project managers and developers, so I include one of the following two sentences as a part of each recommendation:

Read more about SQL Performance Tuning: Estimating Percentage Improvements 1 comment — Join the discussion
Performance Tuning

SQL Server training for developers: primary keys & indexes

I had to do some developer training last week and I wrote up a paper on the basics of primary keys and indexes. Sure, there's tons of similar stuff around the net, but this is MINE, baby.
Our Table: Phone Numbers
For our evil training purposes, let's say we work for the phone company, and we need a database table with phone numbers. We need to track:

Read more about SQL Server training for developers: primary keys & indexes 8 comments — Join the discussion