how Indexing works in logical reads and what are the benefits

276 views Asked by At

I want to reduce the logical reads to speed up the stored procedures execution time sql server, Later i come to know by using index i will find my solution.

I need to know how indexing works and its benefits.

1

There are 1 answers

2
Sievajet On BEST ANSWER

Indexes are used to find rows with specific column values quickly. Without an index, SQL must begin with the first row and then read through the entire table to find the relevant rows. The larger the table, the more this costs. If the table has an index for the columns in question, SQL can quickly determine the position to seek to in the middle of the data file without having to look at all the data. This is much faster than reading every row sequentially.

BUT indexes slow down inserts and updates (which can become a really serious issue with locking) and cost disk space.

Read MSDN for the different indexes that exists in SQL server