Pahalı sorgular0x3E245355DE2FBFF5
Demo modu

Sorgu 0x3E245355DE2FBFF5

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

Ort. süre 19,3 ms
Ort. CPU 19,2 ms
Bekleme payı %0,4
Ort. mantıksal okuma 1.363
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

9.10.2026: 782 çalışma, ort. 19,3 ms max 782 çalışma max ort. süre 19,3 ms 9.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. 9.10.2026 14:00 yeni plan plan 8810

Günler

GünÇalışmaOrt. CPU msOrt. süre ms p95 msOrt. reads
2026-10-0978219,219,3 23,91.363

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
88109.63922,819,51.270 11.10.2026 23:05

Davranış

Wait kategorileri (QDS)
Memory:15515,Idle:9005,Buffer IO:5654
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
(@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())
        -- 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.