From 70b31cff84c59c1ee4a5fc20b246589a60e3a535 Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Sat, 7 Mar 2026 12:15:14 -0600 Subject: [PATCH] Fix procedure_stats plan query to use DECOMPRESS after compression migration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #433 migrated procedure_stats to compressed LOB storage but missed updating GetProcedureStatsPlanXmlByCollectionIdAsync — it still referenced the old query_plan column instead of DECOMPRESS(query_plan_text). This would cause plan viewing to fail for procedure stats rows. Co-Authored-By: Claude Opus 4.6 --- Dashboard/Services/DatabaseService.QueryPerformance.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dashboard/Services/DatabaseService.QueryPerformance.cs b/Dashboard/Services/DatabaseService.QueryPerformance.cs index 1202c01..6fea88d 100644 --- a/Dashboard/Services/DatabaseService.QueryPerformance.cs +++ b/Dashboard/Services/DatabaseService.QueryPerformance.cs @@ -2409,7 +2409,7 @@ FROM collect.query_store_data AS qsd SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; SELECT - ps.query_plan + CAST(DECOMPRESS(ps.query_plan_text) AS nvarchar(max)) AS query_plan_text FROM collect.procedure_stats AS ps WHERE ps.collection_id = @collection_id;";