Let have pages and tuples, have pages, and buffer pages be free. The nested-loop join scans once for each tuple of : page reads. The block nested-loop join loads pages of at a time and scans once per block: . The index nested-loop join searches an index on ’s join column for each tuple of : for an index of height and one matching tuple. The sort–merge join sorts both inputs on the join column and merges them: the two sorts plus . The hash join builds a hash table on the smaller input and probes it with the other: if the smaller fits in pages; otherwise the Grace variant first partitions both inputs into buckets on disk by a hash of the join column and joins bucket by bucket: .
Computer Science · Begrippenlijst
Wat is Nested-loop, block nested-loop, index nested-loop, sort–merge and hash joins?
Ook bekend als: nested-loop join · block nested-loop join · index nested-loop join · sort--merge join · hash join