|
The following diagram shows the size of each operand of the join operators:
|
|
Join tree 1: cost ~= ( T(R) + T(S) + T(T) + T( R ⋈ S ) ) / k Join tree 2: cost ~= ( T(R) + T(S) + T(T) + T( T ⋈ R ) ) / k ----------------------------------------------------------------- Difference in cost ~= T( R ⋈ S ) - T( T ⋈ R ) / k |
|
Cost of join tree = ∑ (size of all internal nodes) |