Machine Learning Database Cost Estimation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Database management systems face challenges in accurately modeling and optimizing query execution times and resource usage, particularly in selecting the best query plan to meet Service Level Agreements (SLAs), due to difficulties in estimating the cost and resource needs of query execution plans.

Innovation Solution

A machine-learning driven database management system that uses a trained machine-learning algorithm to predict database operations, modifying database constructs and resource allocations to improve query processing efficiency, identify problematic queries, and meet SLGs by providing accurate resource usage and cost predictions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If manually derived formulas are used to estimate query cost and cardinality, then the query optimizer can select a least cost plan, but the accuracy of cost estimation is insufficient to meet Service Level Agreements

Engineering Contradiction:
Improvecost estimation accuracyVSAvoidSLA adherence
Core Design Contradiction:
Measurement precisionVSReliability

Solution Approach 1:

The patent replaces manual cost estimation formulas with a machine learning-based prediction system. The ML model is trained on historical query execution data to learn complex patterns and relationships that manual formulas cannot capture, thereby improving cost estimation accuracy and enabling better SLA adherence.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The system implements feedback by using actual query execution results to continuously train and refine the machine learning model. This feedback loop allows the system to improve its cost estimation accuracy over time by learning from real-world performance data, directly addressing the insufficiency of static manual formulas.

Inventive Principle:
Principle #23Feedback

2Productivity

If the database system uses complex performance optimization techniques, then query execution efficiency can be improved, but the system complexity and difficulty of management increase

Engineering Contradiction:
Improvequery execution efficiencyVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent implements self-service by enabling the database system to automatically optimize query execution using machine learning predictions. The system autonomously selects optimal execution plans and adjusts resource allocation based on ML-generated cost estimates, eliminating the need for manual intervention and reducing operational complexity while maintaining high execution efficiency.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system dynamically adjusts execution parameters based on machine learning predictions. Instead of using fixed manual formulas, the system changes cost estimation parameters adaptively by incorporating ML model outputs, allowing efficient query execution while simplifying the optimization process through automated parameter adjustment.

Inventive Principle:
Principle #35Parameter changes

3Adaptability or versatility

If resource allocation is adjusted manually based on ad hoc needs, then specific workload requirements can be met, but the process becomes challenging when parameters are numerous or conflicting workload requirements exist

Engineering Contradiction:
Improveworkload adaptationVSAvoidparameter adjustment ease
Core Design Contradiction:
Adaptability or versatilityVSEase of operation

Solution Approach 1:

The patent introduces dynamics by replacing static manual parameter adjustment with dynamic machine learning-driven resource allocation. The ML model continuously adapts resource allocation based on changing workload characteristics and performance patterns, enabling the system to handle numerous parameters and conflicting requirements automatically without manual intervention.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system automatically changes resource allocation parameters based on ML predictions of workload requirements. Instead of manual adjustment of numerous parameters, the system dynamically modifies parameters such as query execution resources and scheduling priorities based on learned patterns, making the system adaptable while easy to operate.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS11544236B2Machine-learning driven database management
Publication Date: 2023.01.03 TERADATA US INC
  • US11544236B2 patent drawing
  • US11544236B2 patent drawing
  • US11544236B2 patent drawing

AI summary

A machine-learning driven Database Management System (DBMS) is provided. One or more machine-learning algorithms are trained on the database constructs and execution plans produced by a database optimizer for queries. The trained machine-learning algorithms provide predictors when supplied the constructs and plans for a given query. The predictors are processed by the DBMS to make resource, scheduling, and Service Level Agreement (SLA) compliance decisions with respect to the given query.