Opcode-Driven Multi-Level Hash Joins With Shared Operand Metadata

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Multi-level hash joins in relational databases face challenges in optimizing performance due to combinatorial complexity and significant data transfer costs, making it difficult to pipeline and parallelize join operations effectively.

Innovation Solution

Decompose join operations into a set of opcodes that describe complex hash joins, enabling pipelined execution and sharing of join operand metadata across levels, allowing for easier parallelization and reduced processing time.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If multi-level hash joins are processed by joining two data sources at a time and passing results to the parent level, then the join operations can be completed systematically, but the data transfer cost becomes significant and processing time increases

Engineering Contradiction:
Improvejoin processing throughputVSAvoiddata transfer cost
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The patent combines multiple join operations into a single unified hash join execution. Instead of performing separate join operations at each level and transferring results upward, the system merges all join operations across multiple levels into one execution plan. This is achieved by collecting all build-side and probe-side tables, creating a single hash table from build-side tables, and probing with all probe-side tables in one operation, thereby eliminating intermediate data transfers between join levels.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent introduces a new dimension to traditional hash joins by supporting multi-level joins where the hash table can be built from multiple tables simultaneously and probed by multiple tables. This extends the conventional two-table hash join into an n-table operation, allowing the system to process multi-level join queries by transforming them into a single multi-table hash join operation rather than sequential pairwise joins.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Ease of operation

If traditional sequential join processing is used, then implementation is straightforward, but pipelining and parallelization of join work across levels is difficult

Engineering Contradiction:
Improveimplementation simplicityVSAvoidpipelining and parallelization capability
Core Design Contradiction:
Ease of operationVSExtent of automation

Solution Approach 1:

The patent makes the join execution plan dynamic by allowing the optimizer to automatically determine the optimal execution strategy based on query characteristics, table sizes, and available resources. The system dynamically selects which tables to place on the build-side versus probe-side, and can adaptively choose between different execution modes (single-threaded vs. multi-threaded, pipelined vs. materialized) without requiring manual intervention, thereby enabling both simplicity and high automation.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent introduces an intermediary optimization layer that sits between the query parser and the execution engine. This intermediary component automatically transforms multi-level join queries into optimized execution plans, handling the complexity of pipelining and parallelization automatically. The optimizer acts as a mediator that translates high-level join specifications into low-level execution instructions, enabling complex parallel and pipelined operations without requiring the user or higher-level software to manage the complexity directly.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Productivity

If multiple join algorithms and orders are considered to optimize performance, then better results can be achieved, but the combinatorial complexity makes optimization difficult

Engineering Contradiction:
Improvejoin performanceVSAvoidoptimization complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent changes the fundamental parameters of hash join execution by allowing the build-side to consist of multiple tables simultaneously and the probe-side to probe with multiple tables in one operation. This parameter change transforms the optimization problem from selecting among many possible sequential join orders to selecting optimal groupings for build-side and probe-side tables. The system evaluates different partitions of tables into build and probe sets, and different strategies for building and probing the hash table, thereby reducing the combinatorial explosion while still exploring meaningful optimization alternatives.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12517906B2Efficient opcode-driven pipelined execution of multi-level hash joins
Publication Date: 2026.01.06 ORACLE INT CORP
  • US12517906B2 patent drawing
  • US12517906B2 patent drawing
  • US12517906B2 patent drawing

AI summary

An efficient join processing technique is provided that improves multi-level hash join performance by decomposing join operations into a set of opcodes that describe any complex hash join, pipelining execution of these opcodes across join levels, and sharing join operand metadata across opcodes. Complex multi-level joins are easier to describe and execute when decomposed into opcodes. The join technique decomposes multi-level join operations into a minimal set of opcodes such that the join work at each node of the multi-level join can be fully described as an execution of a sequence of opcodes. Operand metadata is shared across the opcodes of all join levels that reference the operand, thereby obviating the need to copy or transmit rows between the join nodes.