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:

    There is nothing intrinsically better about a child who happily bounces off to school the first day and a child who is wary, watchful, and takes a longer time to separate from his parents and join the group. Neither one nor the other is smarter, better adjusted, or destined for a better life.
    Ellen Galinsky (20th century)