Working With SQL Server Columnstore Indexes (RTM Update)Version: 1.7 DescriptionIn this lab, you will learn to use SQL Server 2012 new columnstore index feature to accelerate the performance of typical data warehouse queries involving a centralized fact table and associated dimension tables. OverviewIn this lab, you will learn to use SQL Server 2012 new columnstore index feature to accelerate the performance of typical data warehouse queries involving a centralized fact table and associated dimension tables. You will start with measuring the performance of a specific query against a fact table and its associated dimensions without and then with a columnstore index defined on the fact table. You will learn how to create a columnstore index and how to examine the statistics and metadata associated with it. While the query optimizer will most often suffice in selecting the appropriate index, this lab will also teach you how to use hints to explicitly bypass or force the use of a specific columnstore index for a query. You will then walk through two techniques for updating data for a table with a columnstore index, including how to use partitioning to switch in and out large data sets. You can find all the code for this lab in the Source\Assets folder, one file for each exercise. ObjectivesAfter completing the exercises in this lab, you will be able to:
System Requirements
Note:
This lab was tested on a virtual machine with 4 logical processors and 8GB of RAM. Please note that the query performance statistics will vary depending on the specifications of your own lab environment. If parallelism is disabled or you only are using 1 logical processor, you will not see the batch execution mode be used and the overall performance improvement will be reduced.
You must have the following items to complete this lab:
SetupThis section is required to make changes to the schema of the AdventureWorksDW2012 database. After completing the lab, it can be restored following the steps in the cleanup section. This process may take up to 5 minutes to complete.
CleanupThere is no need to cleanup if you don’t intend to continue working with another Hands-On Labs. If you want to make the cleanup, after completing lab reproduce the following steps in order to restore your database:
ExercisesThis Hands-On Lab comprises the following exercises:
Estimated time to complete this lab: 45 minutes. |