Now we have a generic formula which, given some upper bound for the disk I/O
x, will give us the value of M that would be needed.
Exercise 15.3.4
(a) One way to do better than T(R)T(S)
Mwould be to use only one memory
block to read the smallest relation, say S, one block at the time. For each
block read, move only the tuples of S to fill the remaining M-1 blocks of
(b) If larger relation R is unclustered, we could minimize the number of disk
I/O’s for large relations by first using one memory block to read R and fill in
the remaining M-1 blocks of memory with R tuples. Then read the all tuples
27