Quote:
|
Originally Posted by Seppuku
So, why aren't bits indexable? I understand some file types cannot be indexed, but a bit is a bit. A tinyint is still 8 bits.
|
It's probably due to the cardinality...bit is 0 or 1...anything with a low number of different values...will not make a good index...it will always cause a scan..
Quote:
|
In the index, does the order of the columns in your table, index, and result set even matter? (that question might be an entirely separate subject, and irrelevant to the original post)
|
In a table..no...in an index, it's imperative....at least that's what I've always believed...
For example...an index with Col3, Col2, Col1
And a predeicate of Col1 = something
Is a table scan....ever read up on index intersection?
Still don't know why my example (besides probably be a bad one) shows the index scan using IX4 and IX5....got a very nice seek using IX1 thru IX3
Wonder why the optimizer chose them...
I'm (as usual, so it's not disconcerting) perplexed....