Shane O'Neill

9.8K posts

Shane O'Neill

Shane O'Neill

@SOZDBA

He/Him. DBA. Automation. Food, Coffee, Whiskey (not necessarily in that order)... @[email protected]

Ireland شامل ہوئے Şubat 2009
2.2K فالونگ1.4K فالوورز
Shane O'Neill
Shane O'Neill@SOZDBA·
Hopping back on here to say: @MattMcgiffen ... TDE... thank you 🙏
Limerick, Ireland 🇮🇪 English
1
0
1
159
Shane O'Neill
Shane O'Neill@SOZDBA·
Based on the number of connection requests I received today and yesterday, I assume people are talking during the PASS Summit. I can only say thank you; the stories are grossly overestimated in my favour.
English
0
0
8
670
Shane O'Neill
Shane O'Neill@SOZDBA·
Thanks to all at #DataCeili. Sorry, I have to head off early, but I'm looking forward to catching up with you all again!
Dublin City, Ireland 🇮🇪 English
0
0
2
133
Shane O'Neill
Shane O'Neill@SOZDBA·
#dataceili kicking off with Partitioning
Shane O'Neill tweet media
Dublin City, Ireland 🇮🇪 English
0
0
5
162
Shane O'Neill
Shane O'Neill@SOZDBA·
Hey! I know this guy!
Shane O'Neill tweet media
Limerick, Ireland 🇮🇪 English
1
0
0
236
Chris Taylor
Chris Taylor@SQLGeordie·
@SOZDBA If I've read through this correctly, @PaulRandal bogged this back in 2010 and this comment in 2019 could indicate it may still not be fixed: #comment-1169121" target="_blank" rel="nofollow noopener">sqlskills.com/blogs/paul/mis…
English
1
0
1
67
Shane O'Neill
Shane O'Neill@SOZDBA·
#SQLServer challenge for anyone who likes figuring things out. I've created the index it asked me to. Run the query again, and it suggests the same index **even though it uses it** I can replicate but I can't figure out why. Anyone want to try to replicate it? 😇😈
Shane O'Neill tweet media
English
5
1
2
949
Shane O'Neill
Shane O'Neill@SOZDBA·
Final trick, and thanks to those that responded, I now know more than before. I can only replicate this with these conditions: 1. FULL optimization 2. Range comparison on 1 of the columns, 3. Partitioned table (Yes, I was sneaky and didn't mention this)
English
0
0
0
122
Shane O'Neill
Shane O'Neill@SOZDBA·
Not sure if this is a hint, but the issue is only present when the query goes through Full Optimization. When it's Trivial Optimization, no missing index shows, and the query uses the index fine. That's why I had to add AND (SELECT 1) = (SELECT 1); to the WHERE clause
English
1
0
0
167
Shane O'Neill
Shane O'Neill@SOZDBA·
@feaselkl @sqL_handLe And why SQL Server suggests the index that already exists, and the one it uses, when a range is supplied
English
0
0
1
27
Shane O'Neill
Shane O'Neill@SOZDBA·
@feaselkl @sqL_handLe Interesting, the range could be something to do with it. Changing the range to an equality does change the order. When that index replaces the order one, no missing index recommendation shows (must read that link fully to try and figure out why)
English
1
0
1
32