Distributed Query Engine Logging Update Queries by Epoch
Find Innovative SolutionsGenerate 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
Engineering 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
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
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
2Productivity
If distributed parallel processing is implemented to handle large datasets, then processing throughput improves, but system complexity and data consistency management worsen
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
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
3Reliability
If shadow copy approach is used for stable storage, then data recovery and consistency are improved, but storage requirements and write operations worsen
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
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
Data Source
AI summary
A system and method logs update queries by epoch, including at checkpoints performed at various times.


