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:

    “Don’t join the book burners. Don’t think you are going to conceal faults by concealing evidence that they ever existed.”
    —Dwight D. Eisenhower (1890–1969)