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!!