Skip to content

Commit 70b31cf

Browse files
Fix procedure_stats plan query to use DECOMPRESS after compression migration
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 <noreply@anthropic.com>
1 parent db14906 commit 70b31cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dashboard/Services/DatabaseService.QueryPerformance.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2409,7 +2409,7 @@ FROM collect.query_store_data AS qsd
24092409
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
24102410
24112411
SELECT
2412-
ps.query_plan
2412+
CAST(DECOMPRESS(ps.query_plan_text) AS nvarchar(max)) AS query_plan_text
24132413
FROM collect.procedure_stats AS ps
24142414
WHERE ps.collection_id = @collection_id;";
24152415

0 commit comments

Comments
 (0)