Understanding the Impact of Indexes on Query Design
In the previous chapter, we discussed the query optimization techniques—query execution plan. We discussed the Query Optimization Techniques, Query Optimizer, various query execution plans such as Estimated Execution Plan, Actual Execution Plan and Live Query Statistics. We discussed how to display execution plans, how to save execution plan in XML format, how to compare two execution plans and analyze an execution plan and how to use the execution plan to diagnose performance issue and fix them. With this, we added another tool to our toolkit of query optimization techniques to improve the performance of our queries to gain optimal performance.
In this chapter, we will learn about another optimization and performance improvement technique called indexes. We will discuss index types with examples and how indexes can impact the query design. We will then go through an example to improve the performance of the query.
In...