Review: V(R,A)
Database systems store
statistics on the
relations
V(R,A)
(where A is an
"important" attribute) are
some of the
statistics stored
Processing a selection
(σA=c(R))
using
a clustering index
How to
process
σA=c
(R) using
a clustering index on
attribute A:
IO cost of
selection
(σA=c(R))
using
a clustering index
-
reading the
index file
# disk IOs to
read
the index file:
Comment:
the internal nodes of
a B+ tree can
usually be stored in memory
IO cost of
selection
(σA=c(R))
using
a 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 clustering index
-
reading the
data file
Estimating the
# disk IOs needed to
read
the data file:
# disk block with tuples A=c
~=
B(R)/V(R,A) blocks
IO cost of
selection
(σA=c(R))
using
a clustering index
IO cost of
selection
(σA=c(R))
using
a clustering index
-
special case:
key attribute
❮
❯