Processing a selection
(σA=c(R))
using
an non-clustering index
How to
process
σA=c
(R) using
an non-clustering index on
attribute A:
IO cost of
selection
(σA=c(R))
using
a non-clustering index
-
reading the
index file
# disk IOs to
read
the index file:
IO cost of
selection
(σA=c(R))
using
a non-clustering index
-
reading the
data file
# disk IOs to
read
the data file:
How many
disk blocks do we
need to read ???
IO cost of
selection
(σA=c(R))
using
a non-clustering index
-
reading the
data file
Estimating the
# disk IOs needed to
read
the data file:
Assumption:
each tuple is
stored in
different disk block (worst case)
# disk block with tuples A=c
~=
T(R)/V(R,A) blocks
IO cost of
selection
(σA=c(R))
using
a non-clustering index
IO cost of
selection
(σA=c(R))
using
a non-clustering index
-
special case:
key attribute
❮
❯