Pahalı sorgular0x3D924CAB8808081C
Demo modu

Sorgu 0x3D924CAB8808081C

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

Ort. süre 16,7 ms
Ort. CPU 16,6 ms
Bekleme payı %0,3
Ort. mantıksal okuma 672
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: 507 çalışma, ort. 15,6 ms4.10.2026: 1.655 çalışma, ort. 16,9 ms5.10.2026: 433 çalışma, ort. 16,9 ms max 1.655 çalışma max ort. süre 16,9 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_EmbedQueue_Dequeue
  2. 2.10.2026 17:00 plan değişimi P422 35406→35408
  3. 2.10.2026 17:00 yeni plan plan 35406
  4. 2.10.2026 17:00 yeni plan plan 35407
  5. 2.10.2026 17:00 yeni plan plan 35408

Günler

GünÇalışmaOrt. CPU msOrt. süre ms p95 msOrt. reads
2026-10-0250715,615,6 16,3607
2026-10-041.65516,916,9 19,4676
2026-10-0543316,816,9 21,4728

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
35407150,40,410 5.10.2026 09:08 en iyi
35406300,40,413 5.10.2026 09:08
354082.55016,916,9683 5.10.2026 09:25 en kötü

Davranış

Wait kategorileri (QDS)
CPU:156,Preemptive:50,Memory: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
(@MaxAttempts int,@BatchSize int,@LeaseSeconds int)WITH c AS (
        SELECT TOP (@BatchSize) *
        FROM rag.EmbedQueue WITH (READPAST, UPDLOCK, ROWLOCK)
        WHERE Status = 'Queued' OR (Status = 'Running' AND LeaseUntilUtc < SYSUTCDATETIME() AND Attempt < @MaxAttempts)
        -- Vaka/KB önce: bekçi her gün binlerce profili kuyruğa alır, onaydan sonra gelen vaka onların ardında beklemesin
        ORDER BY CASE SourceType WHEN 'Profile' THEN 1 ELSE 0 END, QueueID
    )
    UPDATE c SET Status = 'Running', Attempt = Attempt + 1, LeaseUntilUtc = DATEADD(second, @LeaseSeconds, SYSUTCDATETIME())
    OUTPUT inserted.QueueID, inserted.SourceType, inserted.SourceRef, inserted.Attempt

Bu sorgunun analizleri

Kayıt yok

Henüz analiz yok.