Plan değişimi P419
Orta İyileşme 12,4× BekliyorDB-11 · query_id 31034 · değişim 4.10.2026 22:00 · plan 32597 → 41370 · Dönüşümlü (4 el değiştirme) · Sorgu detayı ve analizleri
Güven gerekçesiOrta: tek aday (PARAM), mekanik değil (plan ile doğrudan bağ kanıtlanmıyor). Zayıf karşı kanıt: HIGH_VARIANCE, LOW_SAMPLE.
Bu sorgunun diğer plan değişimleri
Önceki kararlar; ters yöndeki değişim aynı planlar arasında geri dönüştür.| # | Planlar | Yön | Durum | Karar | Tespit |
|---|---|---|---|---|---|
| P418 | 30584 → 32597 | Kötüleşme 6,9× | Bekliyor | – | 9.10.2026 14:51 |
Sorgu metni
SELECT 1, N'DB-11', p.plan_id, p.query_plan FROM sys.query_store_plan AS p JOIN @ids AS x ON x.id = p.plan_id
1. Etki özeti
| Metrik | Eski plan (32597) | Yeni plan (41370) | Değişim |
|---|---|---|---|
| Çalışma | 122 | 36 | |
| İptal / hata | 0 / 0 | 0 / 0 | |
| Süre ort. (ms) | 5.013,1 | 405,7 | -92% |
| Süre maks. (ms) | 34.102,3 | 1.690,9 | -95% |
| Süre sapma (ms) | 9.399,1 | 501,5 | -95% |
| CPU ort. (ms) | 4.603,5 | 206,1 | -96% |
| CPU maks. (ms) | 30.596,9 | 894,2 | -97% |
| Mantıksal okuma ort. | 4.363,6 | 9.578,6 | +120% |
| Mantıksal okuma maks. | 23.181,0 | 36.887,0 | +59% |
| Fiziksel okuma | 102,6 | 86,7 | -16% |
| Yazma | 7,5 | 20,4 | +174% |
| Bellek (KB) | 0,0 | 0,0 | |
| Tempdb (KB) | 67,1 | 200,9 | +199% |
| DOP | 1,0 | 1,0 | 0% |
| Satır ort. | 359,4 | 609,3 | +70% |
| Satır maks. | 2.000,0 | 2.000,0 | 0% |
| Dönem | 2.10.2026 00:00 → 8.10.2026 20:00 | 4.10.2026 22:00 → 8.10.2026 09:00 |
Bekleme kategorileri
ms / çalışma| Bekleme kategorisi | Eski plan (32597) | Yeni plan (41370) |
|---|---|---|
| Network IO | 388,6 | 193,0 |
| Buffer IO | 18,5 | 10,5 |
| Memory | 5,5 | 1,8 |
| CPU | 9,3 | 0,4 |
2. Zaman çizelgesi
Eski planYeni plan
┆ değişim anı (kesik çizgi)░ olay (bant: zamanı aralık olarak bilinen)
Pencerede olay yok.
3. Plan karşılaştırması
- Yalnız eski planda erişim: @ids Clustered Index Scan [PK__#B4744D3__3213E83FD23274E9]
- Yalnız yeni planda erişim: @ids Clustered Index Scan [PK__#AB2DEE9__3213E83F21C53D8D]
- Tahmini maliyet: 0.021 → 0.918; tahmini satır: 3.4 → 166.3
- Eski planın index'leri
- @ids.PK__#B4744D3__3213E83FD23274E9, sys.plan_persist_plan.plan_persist_plan_cidx
- Yeni planın index'leri
- @ids.PK__#AB2DEE9__3213E83F21C53D8D, sys.plan_persist_plan.plan_persist_plan_cidx
4. Neden adayları
ölçüm ve eşikle; kesin değildir| Kod | Ölçülen | Eşik | Sonuç | Açıklama |
|---|---|---|---|---|
| WORKLOAD | çalışma başına satır 359.41 → 609.28 (1.7×) | ≥ 2× | desteklemiyor | Çalışma başına satır benzer (359.41 → 609.28): iş yükü farkı yok. |
| PARAM | baskın plan 4 kez el değiştirdi | ≥ 3 | destekliyor | İki plan aynı dönemde sırayla kullanılıyor (4 el değiştirme): plan seçimi bir olaydan çok parametre değerine bağlı (parametre duyarlılığı). |
5. Karşı kanıtlar
- HIGH_VARIANCE (zayıf): Eski planın süre sapması ortalamanın %187'i: ortalama güvenilir değil.
- HIGH_VARIANCE (zayıf): Yeni planın süre sapması ortalamanın %124'i: ortalama güvenilir değil.
- LOW_SAMPLE (zayıf): Yeni plan yalnız 36 kez çalışmış: örnek az, ortalama zayıf.
6. Korpus metni önizlemesi
onaylanınca RAG hafızasına bu metin girer (başlığa onaylayan eklenir)Plan change case #P419 | DB: DB-11 | Improvement | Confidence: Medium (review pending) Query: SELECT ?, p.plan_id, p.query_plan FROM sys.query_store_plan AS p JOIN @ids AS x ON x.id = p.plan_id Change: 2026-10-04 22:00 UTC, plan 32597 → 41370, pattern: Alternating (4 switches) Impact (Query Store, per execution): duration 5013.1 → 405.7 ms (-92%); CPU 4603.5 → 206.1 ms (-96%); reads 4,364 → 9,579 (+120%); rows 359.41 → 609.28 (+70%) Plan difference: Access only in the old plan: @ids Clustered Index Scan [PK__#B4744D3__3213E83FD23274E9]; Access only in the new plan: @ids Clustered Index Scan [PK__#AB2DEE9__3213E83F21C53D8D]; Estimated cost: 0.021 → 0.918; estimated rows: 3.4 → 166.3 Candidate cause: PARAM — The two plans alternate in the same period (4 switches): plan choice depends on the parameter value rather than an event (parameter sensitivity). Counter-evidence: HIGH_VARIANCE — The old plan's duration standard deviation is 187% of the average: the average is not reliable. Counter-evidence: HIGH_VARIANCE — The new plan's duration standard deviation is 124% of the average: the average is not reliable. Counter-evidence: LOW_SAMPLE — The new plan ran only 36 times: the sample is small and the average is weak. Confidence rationale: Medium: a single candidate (PARAM), not mechanical (no direct link to the plan is proven). Weak counter-evidence: HIGH_VARIANCE, LOW_SAMPLE. Note: this is a candidate cause, not proof of the root cause.
7. Karar
Karar vermek için Analyst rolü gerekir.
Karar geçmişi
Kayıt yok
Henüz karar yok.