Index join vs. the one-pass join algorithm