
Chapter 10. SQL performance analysis: a methodology 375
In Figure 10-7 we see that the run time has improved from the 66 second time seen in the
plan cache snapshot to less than half a second. Nice work!
Figure 10-7 Nice work
If we step back and think about it, this makes sense. When the database was first created,
the sales table was small and it performed fine without any indexes. But as sales grew and
the size of the table increased, it became more and more expensive to find a particular sales
person’s data within the table. Therefore, the index, keyed by sales person, was just what
was needed.