Column-Row Hybrid Database Storage for Mixed Workloads

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional relational database systems face inefficiencies in handling mixed workloads of Online Transactional Processing (OLTP) and Online Analytical Processing (OLAP queries, with row-oriented systems being inefficient for OLAP and column-oriented systems being inefficient for OLTP due to high I/O costs and metadata management challenges.

Innovation Solution

A column-row hybrid storage format is introduced, where rows are divided into blocks and data is stored by columns within each block, allowing for efficient retrieval of selected columns for OLAP queries and reduced I/O traffic for OLTP queries, while maintaining metadata separation to ensure Atomicity, Consistency, Isolation, Durability (ACID) properties.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If data is stored in row-oriented format, then retrieval of entire rows is efficient, but OLAP query performance deteriorates when only a few columns are needed

Engineering Contradiction:
Improverow retrieval speedVSAvoidOLAP query efficiency
Core Design Contradiction:
SpeedVSProductivity

Solution Approach 1:

The patent segments the data storage structure by organizing data into columnar blocks within rows. Each block contains data for a specific column, allowing the system to retrieve only the needed column blocks for OLAP queries while maintaining efficient row retrieval capability. This segmentation enables selective access to column blocks based on query requirements.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies local quality by making different parts of the row structure serve different functions. Column blocks within rows are organized to optimize for specific access patterns - some blocks are structured for efficient row retrieval while others are optimized for columnar OLAP queries. This local optimization allows the same data structure to serve both OLTP and OLAP workloads effectively.

Inventive Principle:
Principle #3Local quality

2Productivity

If data is stored in column-oriented format, then OLAP query performance is improved, but OLTP query I/O costs increase due to accessing multiple column files

Engineering Contradiction:
ImproveOLAP query efficiencyVSAvoidI/O cost for OLTP queries
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The patent merges columnar and row-oriented storage approaches by integrating column blocks within row structures. This hybrid approach combines the benefits of both formats - columnar organization for OLAP efficiency and row-oriented structure for OLTP performance. The merging eliminates the need to access separate column files for each row, reducing I/O costs for transactional queries.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent creates a universal data structure that serves multiple functions - the same row structure with embedded column blocks can efficiently handle both OLTP transactions and OLAP analytical queries. This multi-functionality eliminates the need for separate storage formats for different query types, reducing system complexity and I/O overhead.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Productivity

If multiple copies of data in different formats are maintained, then both row-oriented and column-oriented query performance are benefited, but resource consumption increases

Engineering Contradiction:
Improvequery performance for both formatsVSAvoidstorage and computational resources
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The patent implements a universal hybrid storage structure that performs both row-oriented and columnar operations within a single data format. This eliminates the need for maintaining separate data copies in different formats, reducing storage requirements and computational overhead while still providing optimized performance for both OLTP and OLAP workloads.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent adds a new dimension to traditional storage models by organizing data in a hierarchical structure where column blocks are embedded within rows. This dimensional change allows the system to access data from multiple perspectives (row-wise or column-wise) without requiring separate physical copies, optimizing resource utilization while maintaining query performance.

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

Data Source

PatentUS11481364B2Row-column formatting for relational databases
Publication Date: 2022.10.25 CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PTE LTD
  • US11481364B2 patent drawing
  • US11481364B2 patent drawing
  • US11481364B2 patent drawing

AI summary

Embodiments of the present disclosure provide methods and devices for formatting a database. The method can include clustering, into each block, a set of sequence of elements from each column of a database; generating a file storing one or more blocks having the clustered set of sequences of elements; providing a first table storing file schema information that associates the elements with the file; and providing a second table for storing block schema information that associates the columns with the one or more blocks.