diff --git a/src/PlanViewer.Core/Services/ShowPlanParser.cs b/src/PlanViewer.Core/Services/ShowPlanParser.cs index 01bfcd8..0f04675 100644 --- a/src/PlanViewer.Core/Services/ShowPlanParser.cs +++ b/src/PlanViewer.Core/Services/ShowPlanParser.cs @@ -409,7 +409,7 @@ private static void ParseQueryPlanElements(PlanStatement stmt, XElement stmtEl, stmt.CachedPlanSizeKB = ParseLong(queryPlanEl.Attribute("CachedPlanSize")?.Value); stmt.DegreeOfParallelism = (int)ParseDouble(queryPlanEl.Attribute("DegreeOfParallelism")?.Value); stmt.NonParallelPlanReason = queryPlanEl.Attribute("NonParallelPlanReason")?.Value; - stmt.RetrievedFromCache = queryPlanEl.Attribute("RetrievedFromCache")?.Value is "true" or "1"; + stmt.RetrievedFromCache = stmtEl.Attribute("RetrievedFromCache")?.Value is "true" or "1"; stmt.CompileTimeMs = ParseLong(queryPlanEl.Attribute("CompileTime")?.Value); stmt.CompileMemoryKB = ParseLong(queryPlanEl.Attribute("CompileMemory")?.Value); stmt.CompileCPUMs = ParseLong(queryPlanEl.Attribute("CompileCPU")?.Value);