JoinsNested Loops JoinSimple improvement: It is easy to reduce the number of scans of S (inner loop). Original algorithm
for each row r in R:
for each row s in S:
if match(r, s):
output join(r, s)
Equivalent algorithm
|