Pahalı sorgular0x506DD276628AFB07
Demo modu

Sorgu 0x506DD276628AFB07

SQL-1 · DB-11· rag.usp_Corpus_Resync · dönem 2026-09-13 → 2026-10-12 · 36 çalışma · Pahalı sorgulara dön

Ort. süre 7,6 ms
Ort. CPU 7,5 ms
Bekleme payı %1,4
Ort. mantıksal okuma 2.194
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

2.10.2026: 20 çalışma, ort. 10,7 ms4.10.2026: 11 çalışma, ort. 5,3 ms5.10.2026: 5 çalışma, ort. 0,7 ms max 20 çalışma max ort. süre 10,7 ms 2.10.2026 5.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. 7.10.2026 20:39 tanım değişti rag.usp_Corpus_Resync
  2. 4.10.2026 08:00 yeni plan plan 37024
  3. 2.10.2026 16:00 yeni plan plan 34032
  4. 2.10.2026 16:00 yeni plan plan 34658

Günler

GünÇalışmaOrt. CPU msOrt. süre ms p95 msOrt. reads
2026-10-022010,510,7 116,22.894
2026-10-04115,35,3 43,11.905
2026-10-0550,70,7 0,830

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
34032330,70,729 5.10.2026 08:54 en iyi
37024150,550,520.667 4.10.2026 08:16
346582100,098,028.684 2.10.2026 17:24 en kötü

Davranış

Wait kategorileri (QDS)
Buffer IO:4,Memory:2
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
WITH src AS (
        SELECT d.SourceType, d.SourceRef, CASE d.SourceType WHEN 'Case' THEN 0 ELSE 1 END AS Ord, d.DocId AS Seq
        FROM rag.Document AS d WHERE d.SourceType IN ('Case', 'Profile')
        UNION
        SELECT 'Case', CAST(r.RequestID AS nvarchar(20)), 0, 0
        FROM rag.AnalysisRequest AS r
        WHERE r.Status = 'Done'
          AND EXISTS (SELECT 1 FROM rag.AnalysisRecommendation AS a WHERE a.RequestID = r.RequestID AND a.Decision IN ('Approved', 'Applied'))
        UNION
        SELECT 'Case', N'plan:' + CAST(c.CaseID AS nvarchar(20)), 0, 0
        FROM rag.PlanChangeCase AS c WHERE c.Status IN ('Accepted', 'AutoAccepted')
    ), one AS (
        SELECT SourceType, SourceRef, MIN(Ord) AS Ord, MAX(Seq) AS Seq FROM src GROUP BY SourceType, SourceRef
    )
    INSERT rag.EmbedQueue (SourceType, SourceRef)
    SELECT o.SourceType, o.SourceRef
    FROM one AS o
    WHERE NOT EXISTS (SELECT 1 FROM rag.EmbedQueue AS e
                      WHERE e.SourceType = o.SourceType AND e.SourceRef = o.SourceRef AND e.Status IN ('Queued', 'Running'))
    ORDER BY o.Ord, o.Seq, o.SourceRef

Bu sorgunun analizleri

Kayıt yok

Henüz analiz yok.