Materialized View Parsing for Partial Query Satisfaction

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering Contradiction Analysis

1Adaptability or versatility

If the DBMS retrieves data from remote object stores, then data accessibility is improved, but I/O latency increases

Engineering Contradiction:
Improvedata accessibilityVSAvoidI/O latency
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

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.

Inventive Principle:
Principle #10Preliminary action

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.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Loss of information

If the DBMS retrieves full data from remote store, then data completeness is improved, but network traffic increases

Engineering Contradiction:
Improvedata completenessVSAvoidnetwork traffic
Core Design Contradiction:
Loss of informationVSLoss of energy

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.

Inventive Principle:
Principle #2Taking out (Extraction)

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.

Inventive Principle:
Principle #16Partial or excessive action

3Productivity

If the DBMS uses materialized views for query satisfaction, then query performance is improved, but data freshness may be compromised

Engineering Contradiction:
Improvequery performanceVSAvoiddata freshness
Core Design Contradiction:
ProductivityVSReliability

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.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11409739B2Using materialized views to respond to queries
Publication Date: 2022.08.09 TERADATA US INC
  • US11409739B2 patent drawing
  • US11409739B2 patent drawing
  • US11409739B2 patent drawing

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.