Distributed Query Engine Logging Update Queries by Epoch

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current methods of computer data storage are suboptimal, particularly in handling large datasets and ensuring data consistency across distributed systems, leading to inefficiencies in parallel processing and high overheads in transactional logging.

Innovation Solution

A method that prioritizes deterministic data-parallelism over task-parallelism, utilizing a distributed parallel query execution engine with shared-nothing clusters, horizontal range-based partitioning, and a scheduler to optimize query execution and minimize memory congestion, while implementing a shadow copy approach for stable storage and periodic checkpoints to manage dirty pages.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional logging methods are used to record all transactions, then data consistency and ACID compliance are maintained, but logging overhead and system performance deteriorate

Engineering Contradiction:
Improvedata consistencyVSAvoidlogging overhead
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system segments transactions into read-only and read-write types, applying different logging strategies to each. Read-only transactions are logged minimally, while read-write transactions are logged fully with before-images and after-images, reducing overall logging overhead while maintaining consistency where needed

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The logging mechanism applies local quality by treating different transaction types differently based on their specific characteristics. The system dynamically adjusts logging intensity based on whether a transaction modifies data, optimizing the balance between consistency and performance

Inventive Principle:
Principle #3Local quality

2Productivity

If distributed parallel processing is implemented to handle large datasets, then processing throughput improves, but system complexity and data consistency management worsen

Engineering Contradiction:
Improveprocessing throughputVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The system divides the database into horizontal partitions distributed across multiple nodes, allowing parallel processing of queries across different partitions. This segmentation enables throughput improvement while managing complexity through a simplified partitioning strategy

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The query execution engine provides universal functionality across all nodes, handling both read-only and read-write transactions uniformly while maintaining ACID compliance. This multi-functionality simplifies the system architecture by using a single engine type across the distributed system

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

3Reliability

If shadow copy approach is used for stable storage, then data recovery and consistency are improved, but storage requirements and write operations worsen

Engineering Contradiction:
Improvedata recoveryVSAvoidstorage requirements
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The system performs preliminary actions by creating shadow copies only when necessary (on read-write transactions) rather than continuously. The shadow copy mechanism is activated selectively to capture before-images and after-images, reducing storage requirements while maintaining recovery capabilities

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The shadow copy mechanism discards old versions of data pages automatically, retaining only the necessary shadow copies for recovery purposes. This selective retention reduces storage requirements while maintaining the ability to recover to any previous state

Inventive Principle:
Principle #34Discarding and recovering

Data Source

PatentUS11144499B1Method for logging update queries
Publication Date: 2021.10.12 HEAVY AI INC
  • US11144499B1 patent drawing
  • US11144499B1 patent drawing
  • US11144499B1 patent drawing

AI summary

A system and method logs update queries by epoch, including at checkpoints performed at various times.