Database Query Optimizer Deferring Column Decompression

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Commercial database systems face increased computational costs when processing large amounts of compressed data, as decompression is often unnecessary for producing desired results, leading to wastage of computational resources.

Innovation Solution

Implementing a method within the database system to defer or eliminate decompression of data by identifying and decompressing only the columns and rows necessary for query results, using a query optimizer to generate a query plan that minimizes unnecessary decompression operations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Volume of stationary object

If data is compressed to reduce storage space, then storage space is reduced, but computational cost increases due to decompression operations

Engineering Contradiction:
Improvestorage spaceVSAvoidcomputational cost
Core Design Contradiction:
Volume of stationary objectVSUse of energy by moving object

Solution Approach 1:

The system performs preliminary analysis during query planning to identify which compressed columns will actually be needed for query results. By determining this beforehand, the system can prepare decompression only for necessary columns while leaving others compressed, thus avoiding unnecessary computational overhead while maintaining storage efficiency.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

Instead of decompressing all compressed columns (excessive action), the system applies partial decompression only to the specific columns required by the query. This selective approach reduces computational cost while still achieving the query objective, avoiding the waste of decompressing unnecessary data.

Inventive Principle:
Principle #16Partial or excessive action

2Ease of operation

If all compressed data is decompressed to ensure data availability, then data accessibility is improved, but computational resources are wasted on unnecessary decompression

Engineering Contradiction:
Improvedata accessibilityVSAvoidcomputational resource waste
Core Design Contradiction:
Ease of operationVSLoss of energy

Solution Approach 1:

The query optimizer performs preliminary analysis to identify which compressed columns are actually needed for query results. This advance planning ensures that data accessibility is maintained for required columns while avoiding unnecessary decompression of other columns, thus eliminating computational resource waste.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system extracts and decompresses only the specific columns needed for query execution, leaving other columns in their compressed state. This selective extraction approach maintains data accessibility for necessary columns while avoiding the energy waste of processing unnecessary data.

Inventive Principle:
Principle #2Taking out (Extraction)

3Speed

If decompression is performed early in query processing, then data is available for processing, but computational cost increases for queries where decompressed data is not used

Engineering Contradiction:
Improvedata processing speedVSAvoidcomputational cost
Core Design Contradiction:
SpeedVSUse of energy by moving object

Solution Approach 1:

The system performs preliminary analysis during query planning to determine which columns will actually be used in query results. This allows the system to decompress only those specific columns in advance, ensuring data availability for processing while avoiding the computational cost of decompressing unnecessary columns that won't contribute to the final results.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

Instead of decompressing all columns (excessive action), the system applies partial decompression only to the subset of columns required by the query. This selective partial action maintains processing speed for necessary data while eliminating waste on unnecessary decompression operations.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS10936595B2Deferring and/or eliminating decompressing database data
Publication Date: 2021.03.02 SYBASE INC
  • US10936595B2 patent drawing
  • US10936595B2 patent drawing
  • US10936595B2 patent drawing

AI summary

Disclosed herein are system, method, and computer program product embodiments for deferring or eliminating a need to decompress database data. An embodiment operates by decompressing a column of a database. The column may be represented by a predicate of a query. A row of the database may be determined to satisfy the predicate based on decompressed information from the column. Decompression of an additional column of the row may be deferred during execution the query until the row is determined to satisfy the predicate. The additional column may satisfy the query.