Workload Prediction Framework for Dynamic Database Layout Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing automated physical database design approaches fail to address workload drifts, leading to suboptimal performance and increased memory consumption due to their reliance on static workloads.

Innovation Solution

A workload prediction framework that generates Statement Arrival Rate (SAR) and host variable assignment predictions based on observed workload information, enabling the automatic creation of workload predictions and the generation of recommended physical database layouts.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If automated physical database design approaches use static workload analysis, then the design process is simplified and can be performed efficiently, but the physical layout becomes suboptimal when workload changes occur, leading to degraded performance and increased memory consumption

Engineering Contradiction:
Improvedesign efficiencyVSAvoidperformance stability
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent transforms the static workload analysis into a dynamic system by implementing workload prediction mechanisms that continuously monitor observed workload patterns and generate future workload estimates. This allows the physical database design to adapt to changing workload conditions, resolving the contradiction between design efficiency and performance stability by enabling automated reoptimization when workload drift is detected

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent applies preliminary action by predicting future workload characteristics before they fully manifest, allowing the system to proactively adjust physical layouts in advance. The workload prediction framework analyzes historical patterns and generates forecasts that trigger design optimizations before performance degradation occurs, maintaining reliability while preserving design efficiency through automated preliminary adjustments

Inventive Principle:
Principle #10Preliminary action

2Speed

If the physical layout is optimized for current workload, then performance is maximized for the observed workload, but memory consumption increases and the layout becomes inappropriate when workload drifts occur

Engineering Contradiction:
Improvequery performanceVSAvoidmemory consumption
Core Design Contradiction:
SpeedVSQuantity of substance

Solution Approach 1:

The patent implements parameter changes by dynamically adjusting physical layout parameters based on predicted workload characteristics. The system monitors workload patterns and modifies layout parameters such as table partitioning, indexing strategies, and data organization to match anticipated workload demands, thereby maintaining optimal performance while reducing unnecessary memory consumption that would result from static optimization

Inventive Principle:
Principle #35Parameter changes

3Manufacturing precision

If manual physical database design is performed by database experts, then optimal layouts can be found for specific workloads, but the process is time-consuming and cannot keep pace with changing workloads

Engineering Contradiction:
Improvelayout optimization qualityVSAvoiddesign time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The patent applies self-service by implementing an automated system that performs physical database design without requiring database experts. The workload prediction framework combined with the physical database design advisor creates a self-optimizing system that automatically monitors workload, predicts future patterns, and generates optimized layouts, eliminating the time cost of manual expert intervention while maintaining high optimization quality through algorithmic precision

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent implements feedback mechanisms where the system continuously monitors actual workload execution, compares it with predicted workload, and uses this feedback to refine future predictions and adjustments. This closed-loop feedback system enables automated iterative optimization that matches or exceeds expert manual design quality while operating continuously without time loss

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS12242454B2Framework for workload prediction and physical database design
Publication Date: 2025.03.04 SAP SE
  • US12242454B2 patent drawing
  • US12242454B2 patent drawing
  • US12242454B2 patent drawing

AI summary

According to some embodiments, methods and systems may be associated with a cloud computing environment. A workload prediction framework may receive observed workload information associated with a database in the cloud computing environment (e.g., a DataBase as a Service (“DBaaS”)). Based on the observed workload information, a Statement Arrival Rate (“SAR”) prediction may be generated. In addition, a host variable assignment prediction may be generated based on the observed workload information. The workload prediction framework may then use the SAR prediction and the host variable assignment prediction to automatically create a workload prediction for the database. A physical database design advisor (e.g., a table partitioning advisor) may receive the workload prediction and, responsive to the workload prediction, automatically generate a recommended physical layout for the database (e.g., using a cost model, the current physical layout, and an objective function).