|
|
|
|
|
by tomnipotent
1902 days ago
|
|
> Depends on estimated selectivity This can't be determined with LIKE suffix wildcards and that's not how any of the commonly-used index data structures work (b-tree, hash, gist, or bitmap). Index metadata will not help in eliminating leaf pages, and every row is going to need to be scanned. |
|
I am most familiar with MS SQL server and it will most certainly do an index scan for what it thinks is a highly selective predicate with "suffix wildcards" and it can return results faster than scanning the table.
If the index covers the result columns it will scan the index and never touch the table otherwise it will do a key lookup to the table.