Poor performance on [collect].[query_stats] and indexes that helped. #1014
Replies: 3 comments
-
|
Thanks for the report — glad those indexes helped in your environment. Before adding anything to the default schema (or recommending them in docs), I'd like to see what's actually driving the cost so the fix matches the problem. Could you share:
A couple of things I want to verify with the plans:
If you can drop the plans as |
Beta Was this translation helpful? Give feedback.
-
|
Hi. I'll try to gather as much information as possible, but it might take some time, so I'll provide all the data and information I have so far. I have had huge performance problems with reading from PerformanceMaonitor.mdf during running job PerformanceMonitor - Collection After investigating the matter, I determined that the cause of the problem is the I have looked closer indexes on table 2 new indexes are small compared to clustered index what matters in the data reading proces. I have only estimated plans (before, after) in this moment but I think they are pretty convincing: Before - scans on PK (in my case 12 GB) After - scans on much smaller index (in my case 411 MB) I hope this preliminary information will be helpful for any future work. Greetings from Poland |
Beta Was this translation helpful? Give feedback.
-
|
Thanks Damian, this is really helpful — and it points at a real gap. The bottleneck you found is on the collection side, in One note so we don't cross wires: the index work that shipped in 2.8.0 (#835) added Before I settle on the default-schema shape, a couple of thoughts:
If/when you can grab actual plans (even just for one collection cycle), that'll let me confirm the Thanks again — and greetings back to Poland. |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I noticed some query performance issues on the
[collect].[query_stats]table. After reviewing the existing indexes and the missing index recommendations, I added the following two nonclustered indexes:After adding these indexes, the affected queries performed noticeably better in my environment.
Based on this, I suggest considering these indexes for the default schema, or at least documenting them as recommended indexes for larger query_stats tables.
Beta Was this translation helpful? Give feedback.
All reactions