You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/sql-data-warehouse/performance-tuning-result-set-caching.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Performance tuning with result set caching
3
-
description: Result set caching feature overview for Azure SQL Data Warehouse
3
+
description: Result set caching feature overview for SQL Analytics in Azure Synapse Analytics
4
4
services: sql-data-warehouse
5
5
author: XiaoyuMSFT
6
6
manager: craigg
@@ -10,11 +10,11 @@ ms.subservice: development
10
10
ms.date: 10/10/2019
11
11
ms.author: xiaoyul
12
12
ms.reviewer: nidejaco;
13
-
ms.custom: seo-lt-2019
13
+
ms.custom: azure-synapse
14
14
---
15
15
16
16
# Performance tuning with result set caching
17
-
When result set caching is enabled, Azure SQL Data Warehouse automatically caches query results in the user database for repetitive use. This allows subsequent query executions to get results directly from the persisted cache so recomputation is not needed. Result set caching improves query performance and reduces compute resource usage. In addition, queries using cached results set do not use any concurrency slots and thus do not count against existing concurrency limits. For security, users can only access the cached results if they have the same data access permissions as the users creating the cached results.
17
+
When result set caching is enabled, SQL Analytics automatically caches query results in the user database for repetitive use. This allows subsequent query executions to get results directly from the persisted cache so recomputation is not needed. Result set caching improves query performance and reduces compute resource usage. In addition, queries using cached results set do not use any concurrency slots and thus do not count against existing concurrency limits. For security, users can only access the cached results if they have the same data access permissions as the users creating the cached results.
18
18
19
19
## Key commands
20
20
[Turn ON/OFF result set caching for a user database](https://docs.microsoft.com/sql/t-sql/statements/alter-database-transact-sql-set-options?view=azure-sqldw-latest)
@@ -34,7 +34,7 @@ Once result set caching is turned ON for a database, results are cached for all
34
34
- Queries returning data with row size larger than 64KB
35
35
36
36
> [!IMPORTANT]
37
-
> The operations to create result set cache and retrieve data from the cache happen on the control node of a data warehouse instance.
37
+
> The operations to create result set cache and retrieve data from the cache happen on the control node of a SQL Analytics instance.
38
38
> When result set caching is turned ON, running queries that return large result set (for example, >1 million rows) can cause high CPU usage on the control node and slow down the overall query response on the instance. Those queries are commonly used during data exploration or ETL operations. To avoid stressing the control node and cause performance issue, users should turn OFF result set caching on the database before running those types of queries.
39
39
40
40
Run this query for the time taken by result set caching operations for a query:
@@ -71,7 +71,7 @@ WHERE request_id = <'Your_Query_Request_ID'>
71
71
72
72
The maximum size of result set cache is 1 TB per database. The cached results are automatically invalidated when the underlying query data change.
73
73
74
-
The cache eviction is managed by Azure SQL Data Warehouse automatically following this schedule:
74
+
The cache eviction is managed by SQL Analytics automatically following this schedule:
75
75
- Every 48 hours if the result set hasn't been used or has been invalidated.
76
76
- When the result set cache approaches the maximum size.
77
77
@@ -82,4 +82,4 @@ Users can manually empty the entire result set cache by using one of these optio
82
82
Pausing a database won't empty cached result set.
83
83
84
84
## Next steps
85
-
For more development tips, see [SQL Data Warehouse development overview](sql-data-warehouse-overview-develop.md).
85
+
For more development tips, see [development overview](sql-data-warehouse-overview-develop.md).
0 commit comments