Materialized View Parsing for Partial Query Satisfaction
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Traditional database management systems (DBMS) face performance issues when accessing data from remote object stores due to high input/output (I/O) latency, leading to delays and increased network traffic, especially when the data coverage of a materialized view (MV) does not completely overlap with the query condition.
Innovation Solution
The DBMS employs a parsing engine with an optimizer that determines if an MV can satisfy a database query even if the MV condition does not completely overlap with the query condition, using subset or intersecting data coverage conditions, and checks for data freshness to ensure accurate and efficient data retrieval from both the MV and the remote data store.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If the DBMS retrieves data from remote object stores, then data accessibility is improved, but I/O latency increases
Solution Approach 1:
The system pre-loads data from remote object stores into materialized views before it is actually needed. The parser determines which data blocks are likely to be queried and loads them into the MV in advance, so that when a query arrives, the data is already available in memory, eliminating the I/O latency penalty.
Solution Approach 2:
The materialized view acts as an intermediary layer between the remote object store and the query processor. Instead of querying directly from the remote store, queries are redirected to the MV which contains pre-loaded data, thus mediating the data access path and reducing I/O operations.
2Loss of information
If the DBMS retrieves full data from remote store, then data completeness is improved, but network traffic increases
Solution Approach 1:
The parser extracts only the specific data blocks that are needed to satisfy the query conditions from the materialized view, rather than retrieving entire tables or large portions of data. This selective extraction reduces the amount of data transferred over the network while ensuring all necessary information is retrieved.
Solution Approach 2:
The system retrieves slightly more data than strictly necessary by loading entire data blocks into the materialized view, even if only some columns or rows within those blocks are needed. This partial action approach is more efficient than precise columnar retrieval because it avoids the overhead of selective data extraction and ensures data completeness for potential future queries.
3Productivity
If the DBMS uses materialized views for query satisfaction, then query performance is improved, but data freshness may be compromised
Solution Approach 1:
The system implements a feedback mechanism where the parser continuously monitors query patterns and determines when materialized views need to be refreshed or updated. Based on query frequency, data change detection, and performance metrics, the system decides when to reload data from the remote store into the MV, balancing performance optimization with data freshness requirements.
Data Source
AI summary
In some examples, a database system includes a storage medium to store a materialized view (MV) that includes data satisfying an MV condition. At least one processor is to receive a query including a query condition, determine that the query condition partially matches the MV condition, and access a part of the data in the MV partially satisfy the query.


