Skip to content

Commit 3ea4ba5

Browse files
Merge pull request #34675 from dimitri-furman/dfurman/optimized-hp
Clarify optimized HP scope
2 parents 1995548 + df450b4 commit 3ea4ba5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/relational-databases/performance/intelligent-query-processing-details.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Intelligent query processing features described in detail."
44
author: MikeRayMSFT
55
ms.author: mikeray
66
ms.reviewer: derekw, wiassaf
7-
ms.date: 04/30/2025
7+
ms.date: 07/10/2025
88
ms.service: sql
99
ms.subservice: performance
1010
ms.topic: conceptual
@@ -419,15 +419,15 @@ Optimized Halloween protection removes these downsides by making the **Spool** o
419419

420420
### Use optimized Halloween protection
421421

422-
To enable optimized Halloween protection for a database, the following prerequisites are required:
422+
For a query to use optimized Halloween protection, the following prerequisites are required:
423423

424424
- [Accelerated database recovery (ADR)](../accelerated-database-recovery-concepts.md) must be enabled for the database.
425-
- The database must use compatibility level 170.
425+
- The query must be compiled under compatibility level 170.
426426
- The `OPTIMIZED_HALLOWEEN_PROTECTION` [database scoped configuration](../../t-sql/statements/alter-database-scoped-configuration-transact-sql.md#optimized_halloween_protection---on--off-) must be enabled.
427427

428-
The `OPTIMIZED_HALLOWEEN_PROTECTION` database-scoped configuration is enabled by default. This means that when you enable ADR for a database using compatibility level 170, the database starts using optimized Halloween protection.
428+
The `OPTIMIZED_HALLOWEEN_PROTECTION` database-scoped configuration is enabled by default. This means that when you enable ADR for a database using compatibility level 170, queries in the database start using optimized Halloween protection by default.
429429

430-
To ensure that a database uses optimized Halloween protection, execute the following statements:
430+
To ensure that queries in a database use optimized Halloween protection, execute the following statements:
431431

432432
```sql
433433
ALTER DATABASE [<database-name-placeholder>] SET ACCELERATED_DATABASE_RECOVERY = ON;

0 commit comments

Comments
 (0)