Sorgu 0x3D924CAB8808081C
SQL-1 · DB-12· rag.usp_EmbedQueue_Dequeue · dönem 2026-09-12 → 2026-10-11 · 2.402 çalışma · Pahalı sorgulara dön
Ort. süre
19,3 ms
Ort. CPU
19,2 ms
Bekleme payı
%0,5
Ort. mantıksal okuma
812
En büyük bellek izni
–
Önceki dönemde çalışma yok; değişim hesaplanmadı.
Takip
YeniBu sorgu henüz analiz edilmedi.
Bilinen sorgu, ertele:
Günlük trend
Ç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.- 9.10.2026 14:51 tanım değişti rag.usp_EmbedQueue_Dequeue
- 5.10.2026 02:00 yeni plan plan 8124
Günler
| Gün | Çalışma | Ort. CPU ms | Ort. süre ms | p95 ms | Ort. reads |
|---|---|---|---|---|---|
| 2026-10-05 | 2.402 | 19,2 | 19,3 | 23,7 | 812 |
Planlar
QDS, dönem içinde; ham veri 14 gün saklanır| Plan | Çalışma | Ort. süre ms | Ort. CPU ms | Ort. reads | Son çalışma | |
|---|---|---|---|---|---|---|
| 8124 | 2.402 | 19,3 | 19,2 | 812 | 5.10.2026 10:22 |
Davranış
- Wait kategorileri (QDS)
- CPU:281,Memory:3
- Session'da görülen wait'ler
- –
- Başka oturumları bloklama
- 0
- En büyük memory grant
- –
Saat dağılımı
session yakalamaSorgu metni
(@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.AttemptBu sorgunun analizleri
Kayıt yok
Henüz analiz yok.