Plan değişimi P431
Orta Kötüleşme 30,3× BekliyorDB-11 · query_id 63979 · değişim 7.10.2026 16:00 · plan 64452 → 65794 · Geçiş · Sorgu detayı ve analizleri
Güven gerekçesiOrta: tek aday (STATS), mekanik değil (plan ile doğrudan bağ kanıtlanmıyor). Zayıf karşı kanıt: HIGH_VARIANCE.
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.Sorgu metni
(@srv int,@dbName nvarchar(4000),@hash varbinary(8),@from datetime,@to datetime)SELECT (SELECT ServerName FROM DBA.ManagedServers WHERE ServerID = @srv) AS ServerName,
MAX(ObjectName) AS ObjectName,
(SELECT TOP (1) SampleTextHash FROM perf.QueryDailyStats WHERE ServerID = @srv AND DatabaseName = @dbName AND query_hash = @hash
AND StatDateUtc BETWEEN @from AND @to AND SampleTextHash IS NOT NULL ORDER BY StatDateUtc DESC) AS SampleTextHash,
-- K2-5: wait kategorileri dönem toplamı (ilk 3), rollup'ın son günü değil
(SELECT STRING_AGG(CONCAT(w.Category, N':', CAST(w.TotalMs AS nvarchar(20))), N',') WITHIN GROUP (ORDER BY w.TotalMs DESC)
FROM (SELECT TOP (3) ws.wait_category_desc AS Category, SUM(ws.total_query_wait_time_ms) AS TotalMs
FROM perf.QdsWaitStats AS ws
JOIN perf.QdsPlan AS wp ON wp.ServerID = ws.ServerID AND wp.DatabaseName = ws.DatabaseName AND wp.plan_id = ws.plan_id
JOIN perf.QdsQuery AS wq ON wq.ServerID = wp.ServerID AND wq.DatabaseName = wp.DatabaseName AND wq.query_id = wp.query_id
WHERE ws.ServerID = @srv AND ws.DatabaseName = @dbName AND wq.query_hash = @hash
AND ws.IntervalStartUtc >= @from AND ws.IntervalStartUtc < DATEADD(day, 1, @to)
AND NOT EXISTS (SELECT 1 FROM perf.QdsQueryText AS it CROSS APPLY perf.fn_InternalQueryText(it.query_sql_text) AS iq WHERE it.TextHash = wq.TextHash)
GROUP BY ws.wait_category_desc ORDER BY SUM(ws.total_query_wait_time_ms) DESC) AS w) AS TopWaitCategories,
(SELECT TOP (1) SessionTopWaits FROM perf.QueryDailyStats WHERE ServerID = @srv AND DatabaseName = @dbName AND query_hash = @hash
AND StatDateUtc BETWEEN @from AND @to AND SessionTopWaits IS NOT NULL ORDER BY StatDateUtc DESC) AS SessionTopWaits,
ISNULL(SUM(CAST(BlockedOthersCount AS bigint)), 0) AS BlockedOthersCount, MAX(MaxGrantedMemoryKb) AS MaxGrantedMemoryKb
FROM perf.QueryDailyStats
WHERE ServerID = @srv AND DatabaseName = @dbName AND query_hash = @hash AND StatDateUtc BETWEEN @from AND @to1. Etki özeti
| Metrik | Eski plan (64452) | Yeni plan (65794) | Değişim |
|---|---|---|---|
| Çalışma | 7.809 | 29.254 | |
| İptal / hata | 0 / 0 | 0 / 0 | |
| Süre ort. (ms) | 1,3 | 39,4 | +2929% |
| Süre maks. (ms) | 66,0 | 201,1 | +205% |
| Süre sapma (ms) | 2,6 | 24,3 | +838% |
| CPU ort. (ms) | 1,3 | 39,4 | +2952% |
| CPU maks. (ms) | 66,0 | 201,0 | +205% |
| Mantıksal okuma ort. | 318,2 | 42.767,8 | +13342% |
| Mantıksal okuma maks. | 16.129,0 | 71.086,0 | +341% |
| Fiziksel okuma | 0,2 | 0,0 | -96% |
| Yazma | 0,0 | 0,0 | |
| Bellek (KB) | 1.024,0 | 1.024,0 | 0% |
| Tempdb (KB) | 0,0 | 0,0 | |
| DOP | 1,0 | 1,0 | 0% |
| Satır ort. | 1,0 | 1,0 | 0% |
| Satır maks. | 1,0 | 1,0 | 0% |
| Dönem | 6.10.2026 00:00 → 6.10.2026 17:00 | 7.10.2026 16:00 → 8.10.2026 19:00 |
Bekleme kategorileri
ms / çalışma| Bekleme kategorisi | Eski plan (64452) | Yeni plan (65794) |
|---|---|---|
| CPU | 0,0 | 0,1 |
| Memory | 0,0 | 0,0 |
| Buffer IO | 0,0 | 0,0 |
2. Zaman çizelgesi
Eski planYeni plan
┆ değişim anı (kesik çizgi)░ olay (bant: zamanı aralık olarak bilinen)
Olaylar
| Olay | Nesne | Zaman | Önce → sonra | Eski plan kullanıyor | Yeni plan kullanıyor | |
|---|---|---|---|---|---|---|
| StatsUpdated | perf.QdsPlan.PK_QdsPlan | 6.10.2026 01:10 | → 59530/75318 | evet | evet | |
| StatsUpdated | perf.QdsPlan.IX_QdsPlan_Query | 6.10.2026 01:10 | → 59756/75318 | evet | evet | |
| StatsUpdated | perf.QdsPlan._WA_Sys_00000002_58671BC9 | 6.10.2026 01:10 | → 59756/75318 | evet | evet | |
| StatsUpdated | perf.QdsPlan._WA_Sys_00000003_58671BC9 | 6.10.2026 01:10 | → 59756/75318 | evet | evet | |
| StatsUpdated | perf.QdsPlan.IX_QdsPlan_PlanHash | 6.10.2026 00:12 | → 60278/74307 | evet | evet | |
| StatsUpdated | perf.QdsPlan.IX_QdsPlan_PlanHash | 6.10.2026 22:11 | → 59939/75823 | evet | evet | |
| StatsUpdated | perf.QdsPlan._WA_Sys_00000004_58671BC9 | 6.10.2026 01:16 | → 59764/75326 | evet | evet | |
| StatsUpdated | perf.QdsPlan._WA_Sys_00000004_58671BC9 | 6.10.2026 18:58 | → 59960/75810 | evet | evet | |
| StatsUpdated | perf.QdsPlan._WA_Sys_00000004_58671BC9 | 7.10.2026 16:18 | → 60316/76852 | evet | evet | sıra belirsiz |
| StatsUpdated | perf.QdsPlan._WA_Sys_0000000A_58671BC9 | 5.10.2026 23:07 | → 60670/73395 | hayır | hayır | |
| StatsUpdated | perf.QdsPlan._WA_Sys_0000000A_58671BC9 | 6.10.2026 16:35 | → 59910/75792 | hayır | hayır | |
| StatsUpdated | perf.QdsQuery.PK_QdsQuery | 6.10.2026 01:10 | → 41193/59507 | evet | evet | |
| StatsUpdated | perf.QdsQuery.IX_QdsQuery_QueryHash | 5.10.2026 23:06 | → 39118/56017 | evet | evet | |
| StatsUpdated | perf.QdsQuery.IX_QdsQuery_QueryHash | 6.10.2026 17:10 | → 40060/59798 | evet | evet | |
| StatsUpdated | perf.QdsQuery.IX_QdsQuery_QueryHash | 7.10.2026 14:10 | → 40091/59822 | evet | evet | |
| StatsUpdated | perf.QdsQuery._WA_Sys_00000002_54968AE5 | 6.10.2026 01:10 | → 41193/59507 | evet | evet | |
| StatsUpdated | perf.QdsQuery._WA_Sys_00000003_54968AE5 | 6.10.2026 01:10 | → 41193/59507 | evet | evet | |
| StatsUpdated | perf.QdsQuery._WA_Sys_00000005_54968AE5 | 6.10.2026 01:10 | → 40090/59507 | hayır | hayır | |
| StatsUpdated | perf.QdsQuery.IX_QdsQuery_TextHash | 5.10.2026 23:06 | → 39118/56017 | evet | evet | |
| StatsUpdated | perf.QdsQuery.IX_QdsQuery_TextHash | 6.10.2026 17:10 | → 40060/59798 | evet | evet | |
| StatsUpdated | perf.QdsQuery.IX_QdsQuery_TextHash | 7.10.2026 14:10 | → 40091/59822 | evet | evet | |
| StatsUpdated | perf.QdsQuery._WA_Sys_00000008_54968AE5 | 6.10.2026 01:16 | → 40096/59513 | hayır | hayır | |
| StatsUpdated | perf.QdsQuery._WA_Sys_00000008_54968AE5 | 6.10.2026 15:27 | → 40058/59796 | hayır | hayır | |
| StatsUpdated | perf.QdsQuery._WA_Sys_00000008_54968AE5 | 7.10.2026 13:59 | → 40094/59825 | hayır | hayır | |
| StatsUpdated | perf.QdsQuery._WA_Sys_00000007_54968AE5 | 5.10.2026 22:08 | → 38993/54038 | hayır | hayır | |
| StatsUpdated | perf.QdsQuery._WA_Sys_00000007_54968AE5 | 6.10.2026 03:30 | → 40031/59570 | hayır | hayır | |
| StatsUpdated | perf.QdsQuery._WA_Sys_00000007_54968AE5 | 6.10.2026 22:15 | → 40067/59806 | hayır | hayır | |
| StatsUpdated | perf.QdsQueryText.PK_QdsQueryText | 6.10.2026 00:19 | → 4440/4440 | evet | evet | |
| StatsUpdated | perf.QdsQueryText.PK_QdsQueryText | 6.10.2026 05:48 | → 4516/4516 | evet | evet | |
| StatsUpdated | perf.QdsQueryText._WA_Sys_00000002_567ED357 | 5.10.2026 22:41 | → 4366/4366 | hayır | hayır | |
| StatsUpdated | perf.QdsQueryText._WA_Sys_00000002_567ED357 | 6.10.2026 05:34 | → 4509/4509 | hayır | hayır | |
| StatsUpdated | perf.QdsQueryText._WA_Sys_00000002_567ED357 | 7.10.2026 14:01 | → 4571/4571 | hayır | hayır | |
| StatsUpdated | perf.QdsQueryText._WA_Sys_00000003_567ED357 | 6.10.2026 00:34 | → 4434/4434 | hayır | hayır | |
| StatsUpdated | perf.QdsQueryText._WA_Sys_00000003_567ED357 | 6.10.2026 19:19 | → 4561/4561 | hayır | hayır | |
| StatsUpdated | perf.QdsWaitStats.PK_QdsWaitStats | 6.10.2026 06:10 | → 41453/41453 | evet | evet | |
| StatsUpdated | perf.QdsWaitStats._WA_Sys_00000002_5E1FF51F | 6.10.2026 06:10 | → 41453/41453 | evet | evet | |
| StatsUpdated | perf.QdsWaitStats._WA_Sys_00000008_5E1FF51F | 6.10.2026 06:10 | → 41453/41453 | evet | evet | |
| StatsUpdated | perf.QdsWaitStats._WA_Sys_00000003_5E1FF51F | 6.10.2026 06:10 | → 41453/41453 | evet | evet | |
| StatsUpdated | perf.QdsWaitStats._WA_Sys_00000004_5E1FF51F | 6.10.2026 06:11 | → 41453/41453 | hayır | hayır | |
| StatsUpdated | perf.QdsWaitStats._WA_Sys_00000005_5E1FF51F | 6.10.2026 06:11 | → 41453/41453 | hayır | hayır | |
| StatsUpdated | perf.QdsWaitStats._WA_Sys_00000006_5E1FF51F | 6.10.2026 06:11 | → 41453/41453 | hayır | hayır | |
| StatsUpdated | perf.QdsWaitStats._WA_Sys_00000007_5E1FF51F | 6.10.2026 06:10 | → 41453/41453 | evet | evet | |
| StatsUpdated | perf.QdsWaitStats._WA_Sys_00000009_5E1FF51F | 6.10.2026 03:30 | → 41123/41123 | hayır | hayır | |
| StatsUpdated | perf.QueryDailyStats.PK_QueryDailyStats | 6.10.2026 00:45 | → 17411/23992 | evet | evet | |
| StatsUpdated | perf.QueryDailyStats.PK_QueryDailyStats | 6.10.2026 19:19 | → 17409/23987 | evet | evet | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000008_5D80D6A1 | 6.10.2026 00:45 | → 18400/23992 | hayır | hayır | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000008_5D80D6A1 | 6.10.2026 19:19 | → 18365/23987 | hayır | hayır | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000003_5D80D6A1 | 6.10.2026 00:45 | → 17411/23992 | evet | evet | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000003_5D80D6A1 | 6.10.2026 19:19 | → 17409/23987 | evet | evet | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000007_5D80D6A1 | 6.10.2026 00:43 | → 18356/23943 | evet | evet | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000007_5D80D6A1 | 6.10.2026 19:19 | → 18365/23987 | evet | evet | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000004_5D80D6A1 | 6.10.2026 00:45 | → 17411/23992 | evet | evet | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000004_5D80D6A1 | 6.10.2026 19:19 | → 17409/23987 | evet | evet | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000015_5D80D6A1 | 6.10.2026 00:43 | → 18356/23943 | hayır | hayır | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000015_5D80D6A1 | 6.10.2026 19:29 | → 18321/23938 | hayır | hayır | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000016_5D80D6A1 | 6.10.2026 00:43 | → 18356/23943 | hayır | hayır | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000016_5D80D6A1 | 6.10.2026 19:29 | → 18321/23938 | hayır | hayır | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000018_5D80D6A1 | 6.10.2026 00:43 | → 18356/23943 | evet | evet | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000018_5D80D6A1 | 6.10.2026 19:19 | → 18365/23987 | evet | evet | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_0000001B_5D80D6A1 | 6.10.2026 00:43 | → 18356/23943 | hayır | hayır | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_0000001B_5D80D6A1 | 6.10.2026 19:29 | → 18321/23938 | hayır | hayır | |
| StatsUpdated | perf.QueryDailyStats.IX_QueryDailyStats_Query | 6.10.2026 00:45 | → 18400/23992 | evet | evet | |
| StatsUpdated | perf.QueryDailyStats.IX_QueryDailyStats_Query | 6.10.2026 19:19 | → 18365/23987 | evet | evet | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000006_5D80D6A1 | 6.10.2026 00:45 | → 18356/23943 | hayır | hayır | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000006_5D80D6A1 | 6.10.2026 03:00 | → 18321/23938 | hayır | hayır | |
| StatsUpdated | perf.QueryDailyStats._WA_Sys_00000013_5D80D6A1 | 5.10.2026 22:44 | → 20420/26280 | hayır | hayır | |
| TableGrowth | DBA.ManagedServers | 6.10.2026 00:00 – 7.10.2026 00:00 | 3|0.07 → 3|0.07 | bilinmiyor | bilinmiyor | |
| TableGrowth | perf.QdsQuery | 6.10.2026 00:00 – 7.10.2026 00:00 | 59806|30.34 → 60647|30.90 | bilinmiyor | bilinmiyor | |
| TableGrowth | perf.QdsQueryText | 6.10.2026 00:00 – 7.10.2026 00:00 | 4561|6.95 → 4610|7.14 | bilinmiyor | bilinmiyor | |
| TableGrowth | perf.QdsPlan | 6.10.2026 00:00 – 7.10.2026 00:00 | 75824|31.96 → 76968|32.65 | bilinmiyor | bilinmiyor | |
| TableGrowth | perf.QueryDailyStats | 6.10.2026 00:00 – 7.10.2026 00:00 | 23938|19.42 → 23943|19.42 | bilinmiyor | bilinmiyor | |
| TableGrowth | perf.QdsWaitStats | 6.10.2026 00:00 – 7.10.2026 00:00 | 43255|7.16 → 45634|7.59 | bilinmiyor | bilinmiyor |
3. Plan karşılaştırması
- Yalnız eski planda erişim: perf.QdsQuery Index Seek [IX_QdsQuery_QueryHash]; perf.QdsQuery Clustered Index Seek [PK_QdsQuery] (lookup); perf.QdsPlan Index Seek [IX_QdsPlan_Query]
- Yalnız yeni planda erişim: perf.QdsPlan Clustered Index Seek [PK_QdsPlan]; perf.QdsQuery Clustered Index Seek [PK_QdsQuery]
- Yalnız eski planda join: Nested Loops (Inner Join) ×7
- Yalnız yeni planda join: Nested Loops (Inner Join) ×6
- Tahmini maliyet: 0.096 → 0.059; tahmini satır: 1 → 1
- Eski planın index'leri
- perf.QueryDailyStats.IX_QueryDailyStats_Query, perf.QueryDailyStats.PK_QueryDailyStats, DBA.ManagedServers.PK__ManagedS__C56AC8865E257CFD, perf.QdsQuery.IX_QdsQuery_QueryHash, perf.QdsQuery.PK_QdsQuery, perf.QdsPlan.IX_QdsPlan_Query, perf.QdsQueryText.PK_QdsQueryText, perf.QdsWaitStats.PK_QdsWaitStats
- Yeni planın index'leri
- perf.QueryDailyStats.IX_QueryDailyStats_Query, perf.QueryDailyStats.PK_QueryDailyStats, DBA.ManagedServers.PK__ManagedS__C56AC8865E257CFD, perf.QdsWaitStats.PK_QdsWaitStats, perf.QdsPlan.PK_QdsPlan, perf.QdsQuery.PK_QdsQuery, perf.QdsQueryText.PK_QdsQueryText
4. Neden adayları
ölçüm ve eşikle; kesin değildir| Kod | Ölçülen | Eşik | Sonuç | Açıklama |
|---|---|---|---|---|
| STATS | perf.QdsPlan.PK_QdsPlan güncellendi 2026-10-06 01:10 (örnekleme %79) | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsPlan.PK_QdsPlan 2026-10-06 01:10 güncellendi (örnekleme %79); planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsPlan.IX_QdsPlan_Query güncellendi 2026-10-06 01:10 (örnekleme %79.3) | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsPlan.IX_QdsPlan_Query 2026-10-06 01:10 güncellendi (örnekleme %79.3); planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsPlan._WA_Sys_00000002_58671BC9 güncellendi 2026-10-06 01:10 (örnekleme %79.3) | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsPlan._WA_Sys_00000002_58671BC9 2026-10-06 01:10 güncellendi (örnekleme %79.3); planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsPlan._WA_Sys_00000003_58671BC9 güncellendi 2026-10-06 01:10 (örnekleme %79.3) | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsPlan._WA_Sys_00000003_58671BC9 2026-10-06 01:10 güncellendi (örnekleme %79.3); planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsPlan.IX_QdsPlan_PlanHash güncellendi 2026-10-06 22:11 (örnekleme %79.1); pencerede 2 güncelleme | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsPlan.IX_QdsPlan_PlanHash 2026-10-06 22:11 güncellendi (örnekleme %79.1); pencerede 2 güncelleme; planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsPlan._WA_Sys_00000004_58671BC9 güncellendi 2026-10-06 18:58 (örnekleme %79.1); pencerede 3 güncelleme | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsPlan._WA_Sys_00000004_58671BC9 2026-10-06 18:58 güncellendi (örnekleme %79.1); pencerede 3 güncelleme; planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsQuery.PK_QdsQuery güncellendi 2026-10-06 01:10 (örnekleme %69.2) | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsQuery.PK_QdsQuery 2026-10-06 01:10 güncellendi (örnekleme %69.2); planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsQuery.IX_QdsQuery_QueryHash güncellendi 2026-10-07 14:10 (örnekleme %67); pencerede 3 güncelleme | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsQuery.IX_QdsQuery_QueryHash 2026-10-07 14:10 güncellendi (örnekleme %67); pencerede 3 güncelleme; planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsQuery._WA_Sys_00000002_54968AE5 güncellendi 2026-10-06 01:10 (örnekleme %69.2) | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsQuery._WA_Sys_00000002_54968AE5 2026-10-06 01:10 güncellendi (örnekleme %69.2); planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsQuery._WA_Sys_00000003_54968AE5 güncellendi 2026-10-06 01:10 (örnekleme %69.2) | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsQuery._WA_Sys_00000003_54968AE5 2026-10-06 01:10 güncellendi (örnekleme %69.2); planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsQuery.IX_QdsQuery_TextHash güncellendi 2026-10-07 14:10 (örnekleme %67); pencerede 3 güncelleme | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsQuery.IX_QdsQuery_TextHash 2026-10-07 14:10 güncellendi (örnekleme %67); pencerede 3 güncelleme; planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsQueryText.PK_QdsQueryText güncellendi 2026-10-06 05:48 (örnekleme %100); pencerede 2 güncelleme | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsQueryText.PK_QdsQueryText 2026-10-06 05:48 güncellendi (örnekleme %100); pencerede 2 güncelleme; planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsWaitStats.PK_QdsWaitStats güncellendi 2026-10-06 06:10 (örnekleme %100) | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsWaitStats.PK_QdsWaitStats 2026-10-06 06:10 güncellendi (örnekleme %100); planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsWaitStats._WA_Sys_00000002_5E1FF51F güncellendi 2026-10-06 06:10 (örnekleme %100) | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsWaitStats._WA_Sys_00000002_5E1FF51F 2026-10-06 06:10 güncellendi (örnekleme %100); planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsWaitStats._WA_Sys_00000008_5E1FF51F güncellendi 2026-10-06 06:10 (örnekleme %100) | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsWaitStats._WA_Sys_00000008_5E1FF51F 2026-10-06 06:10 güncellendi (örnekleme %100); planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsWaitStats._WA_Sys_00000003_5E1FF51F güncellendi 2026-10-06 06:10 (örnekleme %100) | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsWaitStats._WA_Sys_00000003_5E1FF51F 2026-10-06 06:10 güncellendi (örnekleme %100); planlar bu istatistiği kullanıyor. |
| STATS | perf.QdsWaitStats._WA_Sys_00000007_5E1FF51F güncellendi 2026-10-06 06:10 (örnekleme %100) | değişimden önceki 48 saat | destekliyor | İstatistik perf.QdsWaitStats._WA_Sys_00000007_5E1FF51F 2026-10-06 06:10 güncellendi (örnekleme %100); planlar bu istatistiği kullanıyor. |
| STATS | perf.QueryDailyStats.PK_QueryDailyStats güncellendi 2026-10-06 19:19 (örnekleme %72.6); pencerede 2 güncelleme | değişimden önceki 48 saat | destekliyor | İstatistik perf.QueryDailyStats.PK_QueryDailyStats 2026-10-06 19:19 güncellendi (örnekleme %72.6); pencerede 2 güncelleme; planlar bu istatistiği kullanıyor. |
| STATS | perf.QueryDailyStats._WA_Sys_00000003_5D80D6A1 güncellendi 2026-10-06 19:19 (örnekleme %72.6); pencerede 2 güncelleme | değişimden önceki 48 saat | destekliyor | İstatistik perf.QueryDailyStats._WA_Sys_00000003_5D80D6A1 2026-10-06 19:19 güncellendi (örnekleme %72.6); pencerede 2 güncelleme; planlar bu istatistiği kullanıyor. |
| STATS | perf.QueryDailyStats._WA_Sys_00000007_5D80D6A1 güncellendi 2026-10-06 19:19 (örnekleme %76.6); pencerede 2 güncelleme | değişimden önceki 48 saat | destekliyor | İstatistik perf.QueryDailyStats._WA_Sys_00000007_5D80D6A1 2026-10-06 19:19 güncellendi (örnekleme %76.6); pencerede 2 güncelleme; planlar bu istatistiği kullanıyor. |
| STATS | perf.QueryDailyStats._WA_Sys_00000004_5D80D6A1 güncellendi 2026-10-06 19:19 (örnekleme %72.6); pencerede 2 güncelleme | değişimden önceki 48 saat | destekliyor | İstatistik perf.QueryDailyStats._WA_Sys_00000004_5D80D6A1 2026-10-06 19:19 güncellendi (örnekleme %72.6); pencerede 2 güncelleme; planlar bu istatistiği kullanıyor. |
| STATS | perf.QueryDailyStats._WA_Sys_00000018_5D80D6A1 güncellendi 2026-10-06 19:19 (örnekleme %76.6); pencerede 2 güncelleme | değişimden önceki 48 saat | destekliyor | İstatistik perf.QueryDailyStats._WA_Sys_00000018_5D80D6A1 2026-10-06 19:19 güncellendi (örnekleme %76.6); pencerede 2 güncelleme; planlar bu istatistiği kullanıyor. |
| STATS | perf.QueryDailyStats.IX_QueryDailyStats_Query güncellendi 2026-10-06 19:19 (örnekleme %76.6); pencerede 2 güncelleme | değişimden önceki 48 saat | destekliyor | İstatistik perf.QueryDailyStats.IX_QueryDailyStats_Query 2026-10-06 19:19 güncellendi (örnekleme %76.6); pencerede 2 güncelleme; planlar bu istatistiği kullanıyor. |
| STATS | 16 istatistik güncellendi, planlar kullanmıyor | desteklemiyor | Pencerede güncellenen ama iki planın da kullanmadığı istatistikler aday değil: perf.QdsPlan._WA_Sys_0000000A_58671BC9, perf.QdsQuery._WA_Sys_00000005_54968AE5, perf.QdsQuery._WA_Sys_00000008_54968AE5, perf.QdsQuery._WA_Sys_00000007_54968AE5, perf.QdsQueryText._WA_Sys_00000002_567ED357 (+11). | |
| GROWTH | DBA.ManagedServers: satır 3 → 3 (%0), boyut 0.07 → 0.07 MB (%0) | ≥ %20 | desteklemiyor | DBA.ManagedServers eski planın döneminden değişime kadar satır %0, boyut %0 değişti (2026-10-06 → 2026-10-07). |
| GROWTH | perf.QdsQuery: satır 59,806 → 60,647 (%+1), boyut 30.34 → 30.9 MB (%+2) | ≥ %20 | desteklemiyor | perf.QdsQuery eski planın döneminden değişime kadar satır %+1, boyut %+2 değişti (2026-10-06 → 2026-10-07). |
| GROWTH | perf.QdsQueryText: satır 4,561 → 4,610 (%+1), boyut 6.95 → 7.14 MB (%+3) | ≥ %20 | desteklemiyor | perf.QdsQueryText eski planın döneminden değişime kadar satır %+1, boyut %+3 değişti (2026-10-06 → 2026-10-07). |
| GROWTH | perf.QdsPlan: satır 75,824 → 76,968 (%+2), boyut 31.96 → 32.65 MB (%+2) | ≥ %20 | desteklemiyor | perf.QdsPlan eski planın döneminden değişime kadar satır %+2, boyut %+2 değişti (2026-10-06 → 2026-10-07). |
| GROWTH | perf.QueryDailyStats: satır 23,938 → 23,943 (%0), boyut 19.42 → 19.42 MB (%0) | ≥ %20 | desteklemiyor | perf.QueryDailyStats eski planın döneminden değişime kadar satır %0, boyut %0 değişti (2026-10-06 → 2026-10-07). |
| GROWTH | perf.QdsWaitStats: satır 43,255 → 45,634 (%+5), boyut 7.16 → 7.59 MB (%+6) | ≥ %20 | desteklemiyor | perf.QdsWaitStats eski planın döneminden değişime kadar satır %+5, boyut %+6 değişti (2026-10-06 → 2026-10-07). |
| WORKLOAD | çalışma başına satır 1 → 1 (1×) | ≥ 2× | desteklemiyor | Çalışma başına satır benzer (1 → 1): iş yükü farkı yok. |
| PARAM | baskın plan 1 kez el değiştirdi | ≥ 3 | desteklemiyor | Planlar dönüşümlü değil: yeni plan eskisinin yerini aldı. |
5. Karşı kanıtlar
- HIGH_VARIANCE (zayıf): Eski planın süre sapması ortalamanın %199'i: ortalama güvenilir değil.
6. Korpus metni önizlemesi
onaylanınca RAG hafızasına bu metin girer (başlığa onaylayan eklenir)Plan change case #P431 | DB: DB-11 | Regression | Confidence: Medium (review pending) Query: (@srv int,@dbName nvarchar(?),@hash varbinary(?),@from datetime,@to datetime)SELECT (SELECT ServerName FROM DBA.ManagedServers WHERE ServerID = @srv) AS ServerName, MAX(ObjectName) AS ObjectName, (SELECT TOP (?) SampleTextHash FROM perf.QueryDailyStats WHERE ServerID = @srv AND DatabaseName = @dbName AND query_hash = @hash AND StatDateUtc BETWEEN @from AND @to AND SampleTextHash IS NOT NULL ORDER BY StatDateUtc DESC) AS SampleTextHash, (SELECT STRING_AGG(CONCAT(w.Category, ?, CAST(w.TotalMs AS nvarchar(?))), ?) WITHIN GROUP (ORDER BY w.TotalMs DESC) FROM (SELECT TOP (?) ws.wait_category_desc AS Category, SUM(ws.total_query_wait_time_ms) AS TotalMs FROM perf.QdsWaitStats AS ws JOIN perf.QdsPlan AS wp ON wp.ServerID = ws.ServerID AND wp.DatabaseName = ws.DatabaseName AND wp.plan_id = ws.plan_id JOIN perf.QdsQuery AS wq ON wq.ServerID = wp.ServerID AND wq.DatabaseName = wp.DatabaseName AND wq.query_id = wp.query_id WHERE ws.ServerID = @srv AND ws.DatabaseName = @dbName AND wq.query_hash = @hash AND ws.IntervalStartUtc >= @from AND ws.IntervalStartUtc < DATEADD(day, ?, @to) AND NOT EXISTS (SELECT ? FROM perf.QdsQueryText AS it CROSS APPLY perf.fn_InternalQueryText(it.query_sql_text) AS iq WHERE it.TextHash = wq.TextHash) GROUP BY ws.wait_category_desc ORDER BY SUM(ws.total_query_wait_time_ms) DESC) AS w) AS TopWaitCategories, (SELECT TOP (?) SessionTopWaits FROM perf.QueryDailyStats WHERE ServerID = @srv AND DatabaseName = @dbName AND query_hash = @hash AND StatDateUtc BETWEEN @from AND @to AND SessionTopWaits IS NOT NULL ORDER BY StatDateUtc DESC) AS SessionTopWaits, ISNULL(SUM(CAST(BlockedOthersCount AS bigint)), ?) AS BlockedOthersCount, MAX(MaxGrantedMemoryKb) AS MaxGrantedMemoryKb FROM perf.QueryDailyStats WHERE ServerID = @srv AND DatabaseName = @dbName AND query_hash = @hash AND StatDateUtc BETWEEN @from AND @to Change: 2026-10-07 16:00 UTC, plan 64452 → 65794, pattern: Transition Impact (Query Store, per execution): duration 1.3 → 39.4 ms (+2929%); CPU 1.3 → 39.4 ms (+2952%); reads 318 → 42,768 (+13342%); rows 1 → 1 (+0%) Plan difference: Access only in the old plan: perf.QdsQuery Index Seek [IX_QdsQuery_QueryHash]; perf.QdsQuery Clustered Index Seek [PK_QdsQuery] (lookup); perf.QdsPlan Index Seek [IX_QdsPlan_Query]; Access only in the new plan: perf.QdsPlan Clustered Index Seek [PK_QdsPlan]; perf.QdsQuery Clustered Index Seek [PK_QdsQuery]; Join only in the old plan: Nested Loops (Inner Join) ×7; Join only in the new plan: Nested Loops (Inner Join) ×6 Candidate cause: STATS — Statistic perf.QdsPlan.PK_QdsPlan was updated 2026-10-06 01:10 (sampled 79%); the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsPlan.IX_QdsPlan_Query was updated 2026-10-06 01:10 (sampled 79.3%); the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsPlan._WA_Sys_00000002_58671BC9 was updated 2026-10-06 01:10 (sampled 79.3%); the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsPlan._WA_Sys_00000003_58671BC9 was updated 2026-10-06 01:10 (sampled 79.3%); the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsPlan.IX_QdsPlan_PlanHash was updated 2026-10-06 22:11 (sampled 79.1%); 2 updates in the window; the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsPlan._WA_Sys_00000004_58671BC9 was updated 2026-10-06 18:58 (sampled 79.1%); 3 updates in the window; the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsQuery.PK_QdsQuery was updated 2026-10-06 01:10 (sampled 69.2%); the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsQuery.IX_QdsQuery_QueryHash was updated 2026-10-07 14:10 (sampled 67%); 3 updates in the window; the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsQuery._WA_Sys_00000002_54968AE5 was updated 2026-10-06 01:10 (sampled 69.2%); the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsQuery._WA_Sys_00000003_54968AE5 was updated 2026-10-06 01:10 (sampled 69.2%); the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsQuery.IX_QdsQuery_TextHash was updated 2026-10-07 14:10 (sampled 67%); 3 updates in the window; the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsQueryText.PK_QdsQueryText was updated 2026-10-06 05:48 (sampled 100%); 2 updates in the window; the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsWaitStats.PK_QdsWaitStats was updated 2026-10-06 06:10 (sampled 100%); the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsWaitStats._WA_Sys_00000002_5E1FF51F was updated 2026-10-06 06:10 (sampled 100%); the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsWaitStats._WA_Sys_00000008_5E1FF51F was updated 2026-10-06 06:10 (sampled 100%); the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsWaitStats._WA_Sys_00000003_5E1FF51F was updated 2026-10-06 06:10 (sampled 100%); the plans use this statistic. Candidate cause: STATS — Statistic perf.QdsWaitStats._WA_Sys_00000007_5E1FF51F was updated 2026-10-06 06:10 (sampled 100%); the plans use this statistic. Candidate cause: STATS — Statistic perf.QueryDailyStats.PK_QueryDailyStats was updated 2026-10-06 19:19 (sampled 72.6%); 2 updates in the window; the plans use this statistic. Candidate cause: STATS — Statistic perf.QueryDailyStats._WA_Sys_00000003_5D80D6A1 was updated 2026-10-06 19:19 (sampled 72.6%); 2 updates in the window; the plans use this statistic. Candidate cause: STATS — Statistic perf.QueryDailyStats._WA_Sys_00000007_5D80D6A1 was updated 2026-10-06 19:19 (sampled 76.6%); 2 updates in the window; the plans use this statistic. Candidate cause: STATS — Statistic perf.QueryDailyStats._WA_Sys_00000004_5D80D6A1 was updated 2026-10-06 19:19 (sampled 72.6%); 2 updates in the window; the plans use this statistic. Candidate cause: STATS — Statistic perf.QueryDailyStats._WA_Sys_00000018_5D80D6A1 was updated 2026-10-06 19:19 (sampled 76.6%); 2 updates in the window; the plans use this statistic. Candidate cause: STATS — Statistic perf.QueryDailyStats.IX_QueryDailyStats_Query was updated 2026-10-06 19:19 (sampled 76.6%); 2 updates in the window; the plans use this statistic. Counter-evidence: HIGH_VARIANCE — The old plan's duration standard deviation is 199% of the average: the average is not reliable. Confidence rationale: Medium: a single candidate (STATS), not mechanical (no direct link to the plan is proven). Weak counter-evidence: HIGH_VARIANCE. 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.