Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Add an index, kill performance

$
0
0

Just one for the books.  Have a fairly long SP with some nasty complex select statements, have our "big table" at 6m rows with about 28 indexes, trying to tune it up for some slower cases.

So, I add a 29th index to help my new code.  And it *does* help the new code.

And it makes the old code 6x slower, 6x more logical reads.

Whatdoyoubet this is causing just that compiler abort that wBob was telling me about, brought on by just one too many indexes.

Geez, this stuff can give you a headache sometimes.

Josh


Viewing all articles
Browse latest Browse all 15889

Trending Articles



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