Pahalı sorgular0x66560D987E891315
Demo modu

Sorgu 0x66560D987E891315

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

Ort. süre 13,5 ms
Ort. CPU 13,4 ms
Bekleme payı %1,3
Ort. mantıksal okuma 983
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: 4.557 çalışma, ort. 13,0 ms6.10.2026: 7.799 çalışma, ort. 13,2 ms7.10.2026: 5.325 çalışma, ort. 14,5 ms9.10.2026: 1.544 çalışma, ort. 13,8 ms max 7.799 çalışma max ort. süre 14,5 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. 9.10.2026 14:51 tanım değişti rag.usp_EmbedQueue_Dequeue
  2. 5.10.2026 10:00 yeni plan plan 8390

Günler

GünÇalışmaOrt. CPU msOrt. süre ms p95 msOrt. reads
2026-10-054.55712,813,0 16,9919
2026-10-067.79913,113,2 15,4953
2026-10-075.32514,114,5 18,41.027
2026-10-091.54413,813,8 14,71.165

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
839023.85814,114,01.018 9.10.2026 14:46

Davranış

Wait kategorileri (QDS)
CPU:4814,Memory:66,Preemptive:50
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 < DBA.fn_Now() 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, DBA.fn_Now())
    OUTPUT inserted.QueueID, inserted.SourceType, inserted.SourceRef, inserted.Attempt

Bu sorgunun analizleri

Kayıt yok

Henüz analiz yok.