Pahalı sorgular0x66560D987E891315
Demo modu

Sorgu 0x66560D987E891315

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

Ort. süre 13,0 ms
Ort. CPU 12,9 ms
Bekleme payı %0,6
Ort. mantıksal okuma 876
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: 2.532 çalışma, ort. 13,0 ms6.10.2026: 25 çalışma, ort. 14,9 ms max 2.532 çalışma max ort. süre 14,9 ms 5.10.2026 6.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. 5.10.2026 13:00 yeni plan plan 54138
  3. 5.10.2026 09:00 plan değişimi P480 45488→46765
  4. 5.10.2026 09:00 yeni plan plan 45431
  5. 5.10.2026 09:00 yeni plan plan 45488
  6. 5.10.2026 09:00 yeni plan plan 46765

Günler

GünÇalışmaOrt. CPU msOrt. süre ms p95 msOrt. reads
2026-10-052.53212,913,0 18,9874
2026-10-062514,914,9 41,51.039

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
45488270,60,625 6.10.2026 05:12 en iyi
45431540,70,729 6.10.2026 05:12
541381.06510,810,7788 5.10.2026 20:21
467651.41115,415,3990 6.10.2026 05:46 en kötü

Davranış

Wait kategorileri (QDS)
CPU:208,Memory:17
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.