Skip to content

Commit 859ede5

Browse files
authored
Merge pull request #23530 from mstehrani/patch-12
Note on decryptbykey
2 parents 118da65 + d75c81f commit 859ede5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/t-sql/statements/alter-database-transact-sql-set-options.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3345,6 +3345,8 @@ Disables the Query Store. OFF is the default value.
33453345

33463346
Controls whether query result is cached in the database.
33473347

3348+
3349+
33483350
#### RESULT_SET_CACHING { ON | OFF}
33493351

33503352
ON
@@ -3369,6 +3371,9 @@ SELECT request_id, command, result_cache_hit FROM sys.dm_pdw_exec_requests
33693371
WHERE request_id = <'Your_Query_Request_ID'>
33703372
```
33713373

3374+
> [!NOTE]
3375+
> Result set caching should not be used in conjunction with [DECRYPTBYKEY](/sql/t-sql/functions/decryptbykey-transact-sql). If this cryptographic function must be used, ensure you have result set caching disabled (either at [session-level](/sql/t-sql/statements/set-result-set-caching-transact-sql) or [database-level](/sql/t-sql/statements/alter-database-transact-sql-set-options)) at the time of execution.
3376+
33723377
> [!IMPORTANT]
33733378
> The operations to create result set cache and retrieve data from the cache happen on the control node of a data warehouse instance. 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.
33743379
@@ -3450,4 +3455,4 @@ SET READ_COMMITTED_SNAPSHOT ON;
34503455
- [Best practices for Azure Synapse Analytics](/azure/sql-data-warehouse/sql-data-warehouse-best-practices#maintain-statistics)
34513456
- [Designing tables in Azure Synapse Analytics](/azure/sql-data-warehouse/sql-data-warehouse-tables-overview#statistics)
34523457

3453-
::: moniker-end
3458+
::: moniker-end

0 commit comments

Comments
 (0)