O'Reilly logo

Microsoft SQL Server 2012 Performance Tuning Cookbook by Bihag Thaker, Ritesh Shah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deleting and loading bulk data by splitting, merging, and switching partitions (sliding window)

Many times there is a requirement to archive or delete a large amount of data and load a large amount of new data into a large table periodically, based on the date and time column. Let's say for example, you regularly need to delete a large amount of data that belongs to the oldest quarter. At the same time, you want to load a large amount of data into an existing table. With billions of rows in a table, this operation is not trivial and can take hours. However, if you implement table partitioning based on the date and time column, you can perform this task very efficiently.

In this recipe, we will learn how to efficiently delete a large amount of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required