Multi-Table Semi-Join Query Planning for Fact Table Reduction
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Database management systems struggle to optimize queries involving a single fact table joined with multiple reducer tables due to limitations in applying semi-join reductions, leading to inefficient query execution.
Innovation Solution
Apply multiple applications of semi-join reduction to a common table using multiple reducers, creating table scan semi-joins as physical alternatives, and rearranging join orders to optimize the logical query plan, enabling efficient execution.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If traditional join operations are used to join a fact table with multiple reducer tables, then the query can be executed, but the query execution efficiency deteriorates due to the large size of the fact table and multiple join operations
Solution Approach 1:
The patent segments the join operation into multiple semi-join operations, where each semi-join reduces the fact table by filtering out rows that cannot match the current reducer table. This segmentation transforms a single large join into a sequence of smaller, more efficient operations that progressively reduce the data volume.
Solution Approach 2:
The patent applies preliminary filtering actions through semi-join operations before performing the final join. Each semi-join pre-processes the fact table by removing non-matching rows in advance, so that the subsequent join operations work with a already-reduced dataset, improving overall efficiency.
2Productivity
If semi-join reduction is applied to reduce the fact table size, then query performance improves, but the complexity of the query optimization process increases due to multiple applications of semi-join reduction
Solution Approach 1:
The patent implements a feedback mechanism in the query optimization process where the system evaluates whether to apply semi-join reduction at each join operation based on cost estimates. The optimizer receives feedback from cost calculations and adjusts its decisions accordingly, applying semi-join reduction only when it is determined to be beneficial, thus balancing performance improvement with optimization complexity.
3Quantity of substance
If multiple semi-join reductions are applied to a fact table with multiple reducer tables, then the fact table size is significantly reduced, but the number of operations and computational overhead increases
Solution Approach 1:
The patent changes the parameter of join operation type from traditional equi-join to semi-join, which fundamentally alters how the operations are performed. Semi-join operations change the computational approach by focusing on identifying matching keys first, then transferring only the necessary data, thereby reducing the effective workload despite increasing the operation count.
Data Source
AI summary
In some embodiments, there is provided generating a logical query plan for a query that includes a single fact table and multiple reducer tables; optimizing the logical query plan for query execution; and executing the optimized logical query plan.


