Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 2.37 KB

File metadata and controls

49 lines (37 loc) · 2.37 KB
title Configure workload importance for dedicated SQL pool
description Learn how to set request level importance in Azure Synapse Analytics.
author ajagadish-24
ms.author ajagadish
ms.date 05/15/2020
ms.service azure-synapse-analytics
ms.subservice sql-dw
ms.topic how-to
ms.custom azure-synapse

Configure workload importance in dedicated SQL pool for Azure Synapse Analytics

Setting importance in dedicated SQL pool for Azure Synapse allows you to influence the scheduling of queries. Queries with higher importance will be scheduled to run before queries with lower importance. To assign importance to queries, you need to create a workload classifier.

Create a Workload Classifier with Importance

Often in a data warehouse scenario you have users, on a busy system, who need to run their queries quickly. The user could be executives of the company who need to run reports or the user could be an analyst running an adhoc query. To assign importance, you create a workload classifier and importance is assigned to a query. The examples below use the create workload classifier syntax to create two classifiers. Membername can be a single user or a group. To find existing dedicated SQL pool users, run:

Select name from sys.sysusers

To create a workload classifier, for a user with higher importance run:

CREATE WORKLOAD CLASSIFIER ExecReportsClassifier
    WITH (WORKLOAD_GROUP = 'xlargerc'
         ,MEMBERNAME     = 'name' 
         ,IMPORTANCE     = above_normal);

To create a workload classifier for a user running adhoc queries with lower importance run: 

CREATE WORKLOAD CLASSIFIER AdhocClassifier
    WITH (WORKLOAD_GROUP = 'xlargerc'
         ,MEMBERNAME     = 'name' 
         ,IMPORTANCE     = below_normal);

Next Steps

[!div class="nextstepaction"] Go to Manage and monitor Workload Importance