Pahalı sorgular0x7055A90F75F19274
Demo modu

Sorgu 0x7055A90F75F19274

SQL-1 · DB-11 · dönem 2026-10-03 → 2026-10-09 · 233 çalışma · Pahalı sorgulara dön

Ort. süre 511,9 ms
Ort. CPU 511,4 ms
Bekleme payı %0,1
Ort. mantıksal okuma 33.947
En büyük bellek izni –

Önceki dönemde çalışma yok; değişim hesaplanmadı.

Takip

Yeni

Bu sorgu henüz analiz edilmedi.

Bilinen sorgu, ertele:

Günlük trend

5.10.2026: 135 çalışma, ort. 229,1 ms7.10.2026: 40 çalışma, ort. 583,1 ms9.10.2026: 58 çalışma, ort. 1.121,2 ms max 135 çalışma max ort. süre 1.121,2 ms 5.10.2026 9.10.2026
Çalışma sayısı (sol ölçek)Ortalama süre (sağ ölçek)

Ne değişti, ne zaman

Dönemden 14 gün öncesinden itibaren: planlar, plan değişimleri, nesne tanımı, analizler, uygulanan öneriler.
  1. 8.10.2026 20:00 yeni plan plan 77642
  2. 8.10.2026 12:00 yeni plan plan 71178
  3. 7.10.2026 20:00 yeni plan plan 70178
  4. 7.10.2026 14:00 plan değişimi P423 54153→65749
  5. 7.10.2026 14:00 yeni plan plan 65749
  6. 5.10.2026 14:00 yeni plan plan 54153
  7. 5.10.2026 10:00 yeni plan plan 48489

Günler

GünÇalışmaOrt. CPU msOrt. süre ms p95 msOrt. reads
2026-10-05135228,9229,1 522,326.656
2026-10-0740582,7583,1 748,132.676
2026-10-09581.119,81.121,2 1.306,851.795

Planlar

QDS, dönem içinde; ham veri 14 gün saklanır
PlanÇalışmaOrt. süre msOrt. CPU ms Ort. readsSon çalışma
484898977,877,620.795 5.10.2026 11:50 en iyi
7017830101,6101,615.016 8.10.2026 14:20
7117830103,9103,715.722 8.10.2026 12:45
5415346521,7521,637.994 5.10.2026 18:21
7764232955,4954,247.580 9.10.2026 14:25
657491481.081,41.077,947.349 9.10.2026 18:17 en kötü

Davranış

Wait kategorileri (QDS)
CPU:797,Memory:268,Buffer IO:9
Session'da görülen wait'ler
–
Başka oturumları bloklama
0
En büyük memory grant
–

Saat dağılımı

session yakalama
00:00 — 00001:00 — 002:00 — 003:00 — 00304:00 — 005:00 — 006:00 — 00607:00 — 008:00 — 009:00 — 00910:00 — 011:00 — 012:00 — 01213:00 — 014:00 — 015:00 — 01516:00 — 017:00 — 018:00 — 01819:00 — 020:00 — 021:00 — 02122:00 — 023:00 — 0

Sorgu metni

SQL
(@noStatus bit,@statuses2 nvarchar(4000),@statuses1 nvarchar(4000),@Confidence nvarchar(4000),@Direction nvarchar(4000),@Pattern nvarchar(4000),@ServerId int,@DatabaseName nvarchar(4000),@caseId bigint,@qHash varbinary(8000),@qId bigint,@qText nvarchar(4000),@asOf date,@Top int)WITH sel AS (
    SELECT c.*, ROW_NUMBER() OVER (PARTITION BY c.ServerID, c.DatabaseName, c.query_id ORDER BY c.DetectedUtc DESC, c.CaseID DESC) AS rn
    FROM rag.PlanChangeCase AS c
    WHERE (@noStatus = 1 OR c.Status IN (@statuses1,@statuses2))
      AND (@Confidence IS NULL OR c.Confidence = @Confidence)
      AND (@Direction IS NULL OR c.Direction = @Direction)
      AND (@Pattern IS NULL OR c.Pattern = @Pattern)
      AND (@ServerId IS NULL OR c.ServerID = @ServerId)
      AND (@DatabaseName IS NULL OR c.DatabaseName = @DatabaseName)
      AND (@caseId IS NULL OR c.CaseID = @caseId)
      AND (@qHash IS NULL OR c.query_hash = @qHash)
      AND (@qId IS NULL OR @qId IN (c.query_id, c.OldPlanId, c.NewPlanId))
      AND (@qText IS NULL OR c.SqlText LIKE @qText OR c.ObjectName LIKE @qText))
SELECT TOP (@Top) c.CaseID AS CaseId, c.ServerID AS ServerId, c.DatabaseName, c.query_id AS QueryId,
       LEFT(LTRIM(REPLACE(REPLACE(REPLACE(c.SqlText, CHAR(13), ' '), CHAR(10), ' '), CHAR(9), ' ')), 80) AS SqlSnippet,
       c.Direction, c.DurationRatio, c.TotalLoadDeltaMs, c.Confidence, c.Pattern,
       (SELECT STRING_AGG(x.Code, ', ') FROM (SELECT DISTINCT f.Code FROM rag.PlanChangeFinding AS f
         WHERE f.CaseID = c.CaseID AND f.Kind = 'Candidate' AND f.Supports = 1) AS x) AS Candidates,
       (SELECT COUNT(*) FROM rag.PlanChangeFinding AS f WHERE f.CaseID = c.CaseID AND f.Kind = 'Counter') AS CounterCount,
       c.Status, c.DetectedUtc,
       o.OtherCases, ISNULL(o.OtherAccepted, 0) AS OtherAccepted, ISNULL(o.OtherRejected, 0) AS OtherRejected, c.query_hash AS QueryHash, t.State AS TrackState, c.Source
FROM sel AS c
OUTER APPLY (SELECT COUNT(*) AS OtherCases,
                    SUM(IIF(p.Status IN ('Accepted', 'AutoAccepted'), 1, 0)) AS OtherAccepted,
                    SUM(IIF(p.Status = 'Rejected', 1, 0)) AS OtherRejected
             FROM rag.PlanChangeCase AS p
             WHERE p.ServerID = c.ServerID AND p.DatabaseName = c.DatabaseName AND p.query_id = c.query_id AND p.CaseID <> c.CaseID) AS o
OUTER APPLY (SELECT s.State FROM rag.fn_QueryTrackState(c.ServerID, c.DatabaseName, c.query_hash, ISNULL(@asOf, CAST(DBA.fn_Now() AS date))) AS s
             WHERE c.query_hash IS NOT NULL) AS t
WHERE c.rn = 1
ORDER BY c.TotalLoadDeltaMs DESC, c.CaseID

Bu sorgunun analizleri

Kayıt yok

Henüz analiz yok.