From 3f70e54cf5ea03f8567f60134c3d49967dcaca4c Mon Sep 17 00:00:00 2001 From: sommarskog Date: Sat, 18 Jul 2026 22:23:17 +0200 Subject: [PATCH 1/3] Update intelligent-query-processing-memory-grant-feedback.md Topic said that persistence of memory-grant-feedback and percentile testing is currently not available in Azure Managed Instance. My testing indicates that it is, and I assume that the text I deleted was a leftover. --- .../intelligent-query-processing-memory-grant-feedback.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/relational-databases/performance/intelligent-query-processing-memory-grant-feedback.md b/docs/relational-databases/performance/intelligent-query-processing-memory-grant-feedback.md index df7dffd024a..7f1314690e9 100644 --- a/docs/relational-databases/performance/intelligent-query-processing-memory-grant-feedback.md +++ b/docs/relational-databases/performance/intelligent-query-processing-memory-grant-feedback.md @@ -8,7 +8,7 @@ ms.date: 12/08/2025 ms.service: sql ms.subservice: configuration ms.topic: concept-article -f1_keywords: +f1_keywords:mana - "memory grant feedback" helpviewer_keywords: - "memory grant feedback" @@ -188,12 +188,10 @@ This feature was introduced in [!INCLUDE [ssSQL22](../../includes/sssql22-md.md) - Percentile memory grant feedback is enabled by default in [!INCLUDE [ssSQL22](../../includes/sssql22-md.md)], but has no effect if Query Store isn't enabled or when Query Store isn't in a "read write" state. -- Persistence for memory grant, CE, and DOP feedback is on by default in [!INCLUDE [ssSQL22](../../includes/sssql22-md.md)], but has no effect when Query Store isn't enabled or when Query Store isn't in a "read write" state. +- Persistence for memory grant, CE, and DOP feedback is on by default in [!INCLUDE [ssSQL22](../../includes/sssql22-md.md)] and [!INCLUDE [ssazuremi-md](../../includes/ssazuremi-md.md)], but has no effect when Query Store isn't enabled or when Query Store isn't in a "read write" state. - Percentile and persistence for memory grant feedback is available in [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)], and enabled by default on all databases, both existing and new. -- Percentile and persistence for memory grant feedback isn't currently available in [!INCLUDE [ssazuremi-md](../../includes/ssazuremi-md.md)]. - It's recommended that you have a performance baseline for your workload before the feature is enabled for your database. The baseline numbers will help you determine if you're getting the intended benefit from the feature. Memory grant feedback (MGF) is an existing feature that adjusts the size of the memory allocated for a query based on past performance. However, the initial phases of this project only stored the memory grant adjustment with the plan in the cache – if a plan is evicted from the cache, the feedback process must start again, resulting in poor performance the first few times a query is executed after eviction. The new solution is to persist the grant information with the other query information in the Query Store so that the benefits last across cache evictions. Memory grant feedback persistence and percentile address existing limitations of memory grant feedback in a non-intrusive way. From 613a3bbbc76c5c362af7793e58b44d0883aa3d8c Mon Sep 17 00:00:00 2001 From: Randolph West MSFT <97149825+rwestMSFT@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:34:28 -0600 Subject: [PATCH 2/3] Apply suggestion from @v-regandowner Co-authored-by: Regan Downer --- .../intelligent-query-processing-memory-grant-feedback.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/relational-databases/performance/intelligent-query-processing-memory-grant-feedback.md b/docs/relational-databases/performance/intelligent-query-processing-memory-grant-feedback.md index 7f1314690e9..bb6eaad5d26 100644 --- a/docs/relational-databases/performance/intelligent-query-processing-memory-grant-feedback.md +++ b/docs/relational-databases/performance/intelligent-query-processing-memory-grant-feedback.md @@ -8,7 +8,7 @@ ms.date: 12/08/2025 ms.service: sql ms.subservice: configuration ms.topic: concept-article -f1_keywords:mana +f1_keywords: - "memory grant feedback" helpviewer_keywords: - "memory grant feedback" From db4ee691eefadc8a5ada29ec2c1f1db1aea7c39b Mon Sep 17 00:00:00 2001 From: Randolph West MSFT <97149825+rwestMSFT@users.noreply.github.com> Date: Mon, 20 Jul 2026 10:38:55 -0600 Subject: [PATCH 3/3] Apply suggestion from @rwestMSFT Apply batched suggestions from code review Co-authored-by: Derek Wilson <34077013+thesqlsith@users.noreply.github.com> Co-authored-by: Randolph West MSFT <97149825+rwestMSFT@users.noreply.github.com> Init Apply suggestion from @rwestMSFT --- .../intelligent-query-processing-memory-grant-feedback.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/relational-databases/performance/intelligent-query-processing-memory-grant-feedback.md b/docs/relational-databases/performance/intelligent-query-processing-memory-grant-feedback.md index bb6eaad5d26..30bcb7affed 100644 --- a/docs/relational-databases/performance/intelligent-query-processing-memory-grant-feedback.md +++ b/docs/relational-databases/performance/intelligent-query-processing-memory-grant-feedback.md @@ -4,7 +4,7 @@ description: Learn about Memory grant feedback, part of the Intelligent Query Pr author: rwestMSFT ms.author: randolphwest ms.reviewer: derekw, randolphwest -ms.date: 12/08/2025 +ms.date: 09/14/2026 ms.service: sql ms.subservice: configuration ms.topic: concept-article @@ -188,9 +188,7 @@ This feature was introduced in [!INCLUDE [ssSQL22](../../includes/sssql22-md.md) - Percentile memory grant feedback is enabled by default in [!INCLUDE [ssSQL22](../../includes/sssql22-md.md)], but has no effect if Query Store isn't enabled or when Query Store isn't in a "read write" state. -- Persistence for memory grant, CE, and DOP feedback is on by default in [!INCLUDE [ssSQL22](../../includes/sssql22-md.md)] and [!INCLUDE [ssazuremi-md](../../includes/ssazuremi-md.md)], but has no effect when Query Store isn't enabled or when Query Store isn't in a "read write" state. - -- Percentile and persistence for memory grant feedback is available in [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)], and enabled by default on all databases, both existing and new. +- The percentile and persistence modes for memory grant feedback are enabled by default in [!INCLUDE [ssSQL22](../../includes/sssql22-md.md)] and later versions, [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)], Azure SQL Managed Instance with the [Always-up-to-date update policy](/azure/azure-sql/managed-instance/update-policy#always-up-to-date-update-policy), Azure SQL Managed Instance with the [SQL Server 2022 update policy](/azure/azure-sql/managed-instance/update-policy?view=azuresql-mi&preserve-view=true#sql-server-2022-update-policy), and Azure SQL Managed Instance with the [SQL Server 2025 update policy](/azure/azure-sql/managed-instance/update-policy?view=azuresql-mi&preserve-view=true#sql-server-2025-update-policy). This option requires that the Query Store is enabled and operating in a "read write" state. It's recommended that you have a performance baseline for your workload before the feature is enabled for your database. The baseline numbers will help you determine if you're getting the intended benefit from the feature.