while ( R has more data blocks )
{
read data blocks to fill available buffer;
Extract the projection attrs for each tuple in buffers;
Move projected tuples to output
}
|
(Projection π does not remove duplicates...)
|
|
Problem:
|
Example:
|
|
Consequently:
|
|
|
Disk read/write: 3 B(R) blocks
P-1
Transfered: ----- blocks
P
|
3
Disk read/write: --- B(R) blocks
P
P-1
Transfered: ----- blocks
P2
|