Slideshow:
|
|
Operator | I/O cost | Explanation | |
---|---|---|---|
Table-Scan | B(R) |
Read
all blocks from the
relation:
B(R) blocks.
|
|
Index-Scan | ≤ B(R) |
Depends on number of
values in the
index is
scanned
Single value: I/O cost = O(1) (a few blocks) << B(R) |
Operator | I/O cost | Explanation | |
---|---|---|---|
Table-Scan | ~ T(R) |
Assuming that the tuples
are sparsely stored in the
file:
We will read 1 disk block per
tuple.
|
|
Index-Scan | ≤ T(R) |
Depends on number of
values in the
index is
scanned
Single value: I/O cost = O(1) (a few blocks) << B(R) << T(R) |