Index-Scans

Tag: index-scans

Data Type Mismatches Do Not Always Cause a Bad Implicit Conversion and Index Scan

Data Type Mismatches Do Not Always Cause a Bad Implicit Conversion and Index Scan

Here’s a great recent question that I got about query tuning and index use:

Assuming that the documented levels of data type precedence in SQL ServerΒ are true as of SQL 2016, why does a bigint valueΒ not force an index scan when compared against an int column?

Continue reading

Read from the Right End of the Index: BACKWARD Scans

Read from the Right End of the Index: BACKWARD Scans

Optimizing queries is the most fun when you don’t need to add indexes. There’s nothing quite so nice as finding a way to make reading data faster, without slowing down writes or creating new data structures that need to be maintained.

Continue reading