Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Merge with too many indexes.

$
0
0

Hi experts,

I have a MERGE statement that it is taking too long… On the execution plan, this is 50% of the workload.

As you can see, I think the MERGE is taking long because it has to update every index… I created the indexes some time ago per requests of people complaining certain reports were slow… I created them as “test…” but never checked how much were they used.

How can I check if they are really used or they are wasting space/resources…?

 

I also noticed the difference between actual/estimated number of rows, but I don’t see outdated statistics, how come this happens???

Thanks in advance!!


Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>