1
0
mirror of https://github.com/Microsoft/sql-server-samples.git synced 2025-12-08 14:58:54 +00:00
Files
sql-server-samples/samples/databases/wide-world-importers/sample-scripts/operational-analytics

Sample performance with Operational Analytics in WideWorldImporters

This script shows the performance of analytics queries in the operational database. It relies on the Order Insert workload driver.

The main purpose is to show the performance benefits of using nonclustered columnstore indexes for analytics queries on operational systems, and how they limit the impact on the operational workload.

Contents

About this sample
Before you begin
Running the sample
Sample details
Disclaimers
Related links

About this sample

  1. Applies to: SQL Server 2016 (or higher), Azure SQL Database
  2. Key features: nonclustered columnstore index
  3. Workload: Operational Analytics
  4. Programming Language: T-SQL
  5. Authors: Greg Low, Jos de Bruijn
  6. Update history: 26 May 2016 - initial revision

Before you begin

To run this sample, you need the following prerequisites.

Software prerequisites:

  1. SQL Server 2016 (or higher) or Azure SQL Database.
  2. SQL Server Management Studio
  3. The WideWorldImporters database (Full version).

Running the sample

  1. Run the Order Insert workload for a while. When starting from the vanilla WideWorldImporters database the recommendation is to run at least 20 minutes, to ensure that enough data is generated and that compression kicks in (the sample has a COMPRESSION_DELAY of 10 minutes for the columnstore indexes).

  2. Execute the sample script.

  3. Open the Messages pane in SSMS and observe the time taken to run the query with and without columnstore index.

Sample details

The Order Insert workload driver is used to simulate an order processing workload. The queries in the sample script are reporting queries run with and without columnstore index.

Disclaimers

The code included in this sample is not intended to be used for production purposes.

For more information, see these articles: