Hash Join - Hybrid Hash Join

Hybrid Hash Join

The hybrid hash join algorithm is a refinement of the grace hash join which takes advantage of more available memory. During the partitioning phase, the hybrid hash join uses the available memory for two purposes:

  1. To hold the current output buffer page for each of the partitions
  2. To hold an entire partition in-memory, known as "partition 0"

Because partition 0 is never written to or read from disk, the hybrid hash join typically performs fewer I/O operations than the grace hash join. Note that this algorithm is memory-sensitive, because there are two competing demands for memory (the hash table for partition 0, and the output buffers for the remaining partitions). Choosing too large a hash table might cause the algorithm to recurse because one of the non-zero partitions is too large to fit into memory.

Read more about this topic:  Hash Join

Famous quotes containing the word join:

    This, then, is the test we must set for ourselves; not to march alone but to march in such a way that others will wish to join us.
    Hubert H. Humphrey (1911–1978)