Having estimated how many entries he needs, the clerk prices each route in steps. Moving to the next page on the same shelf is one step. Jumping from a card to a page on another shelf is four steps: he has to find the shelf, reach it, open the ledger. For every entry he looks through he adds a fraction of a step. The route with the smaller sum wins.
In this lesson
- The price of a full scan
- The price of an index
- Correlation and Bitmap Heap Scan
- Common mistake
- Key points