03.11.2012 Views

SQL Server Hardware - Red Gate Software

SQL Server Hardware - Red Gate Software

SQL Server Hardware - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Backup compression<br />

Chapter 6: <strong>SQL</strong> <strong>Server</strong> Version and Edition Selection<br />

<strong>SQL</strong> <strong>Server</strong> 2008 brought with it, for the first time, native compression of full, differential,<br />

and transaction log backups. The data that will be written to the backup file(s) is<br />

compressed before it is written out to the backup file. This makes the backup file(s):<br />

• much smaller – in my experience, most databases usually see a compression ratio of<br />

around 3 or 4 to 1, but this is dependent on your data<br />

• 2 to 3 times faster – since disk I/O is reduced, and disk throughput is the main<br />

bottleneck when doing a database backup; restoring from a compressed backup is also<br />

faster by a similar amount.<br />

Of course, this benefit is not completely free, since your CPUs have to do some extra<br />

work, generally 10–20% extra, depending on your hardware, in compressing and uncompressing<br />

the backup files. This is yet another argument for having modern, multi-core<br />

processors, which can usually shrug off this extra load.<br />

One common misconception is that you will not see any benefit from backup<br />

compression if you are also using <strong>SQL</strong> <strong>Server</strong> data compression. Depending on your data,<br />

and the number of indexes that have already been compressed with data compression,<br />

you will see a reduced compression ratio from backup compression, but you will still see<br />

some benefit from backup compression. On the databases I manage that are subject to<br />

data compression, I find that the backup compression ratio falls from 3 or 4 to 1, down<br />

to 2 to 1.<br />

<strong>SQL</strong> <strong>Server</strong> native backup compression does lack the advanced features available in many<br />

third-party products such as <strong>SQL</strong> Backup Pro or <strong>SQL</strong> HyperBac. For example, with native<br />

backup compression, you have no control over the compression level, and you are unable<br />

to do object level or virtual restores.<br />

Microsoft <strong>SQL</strong> <strong>Server</strong> 2008 R2 Books Online discusses backup compression at<br />

http://msdn.microsoft.com/en-us/library/bb964719(v=<strong>SQL</strong>.100).aspx.<br />

217

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!