ERP SQL Query Monitoring Module for System Reliability

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Enterprise resource planning systems face issues due to sub-optimal or defective SQL queries that can degrade system performance, leading to database saturation and unavailability, often caused by users forming or modifying queries with defects, which can be unintentional or malicious.

Innovation Solution

An ERP system with a monitoring module that analyzes SQL queries in real-time, determines execution plan metrics, and compares them against estimated metrics to identify and address queries that exceed performance thresholds, issuing alerts and terminating invalid queries to prevent system degradation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If users are allowed to form and modify SQL queries freely, then query flexibility and user autonomy are improved, but system reliability and performance are degraded due to defective queries

Engineering Contradiction:
Improvequery flexibilityVSAvoidsystem reliability
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The system implements a feedback mechanism by monitoring query execution metrics and comparing them against estimated metrics. When actual metrics deviate significantly from estimates (indicating potentially defective queries), the system provides feedback by identifying and flagging these queries for review, thus maintaining system reliability while preserving user flexibility in query formulation.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent introduces an intermediary monitoring layer between the user and the database execution engine. This intermediary analyzes query execution plans and metrics without preventing users from forming their own queries, thus acting as a mediator that preserves user autonomy while protecting system reliability by filtering out defective queries.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If comprehensive monitoring of SQL queries is implemented, then system reliability is improved, but device complexity increases

Engineering Contradiction:
Improvesystem reliabilityVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The monitoring system implements partial monitoring by focusing only on critical execution metrics that indicate defective queries, rather than comprehensively analyzing every aspect of query execution. This selective approach maintains system reliability while avoiding the complexity of exhaustive monitoring of all query parameters and execution details.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The system monitors changes in execution plan metrics rather than absolute values. By detecting significant deviations between estimated and actual metrics, the system can identify defective queries without requiring complex monitoring of every execution parameter, thus maintaining simplicity while ensuring reliability.

Inventive Principle:
Principle #35Parameter changes

3Ease of operation

If defective SQL queries are allowed to execute, then ease of operation is maintained, but productivity decreases due to system degradation

Engineering Contradiction:
Improvequery execution easeVSAvoidsystem productivity
Core Design Contradiction:
Ease of operationVSProductivity

Solution Approach 1:

The system performs preliminary analysis of query execution plans before full execution, estimating key metrics in advance. This preliminary action allows the system to identify potentially defective queries before they cause system degradation, thus protecting productivity while maintaining ease of operation by allowing legitimate queries to execute without interruption.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The monitoring system quickly compares actual execution metrics against estimated metrics and rapidly identifies defective queries that exceed threshold deviations. This rapid detection and skipping of problematic queries prevents system degradation and maintains productivity, while legitimate queries continue to execute with minimal interruption.

Inventive Principle:
Principle #21Skipping (Rushing through)

Data Source

PatentUS12105721B2Enterprise resource planning system, server and supervision method of SQL queries in such a system or server
Publication Date: 2024.10.01 IVALUA S AS
  • US12105721B2 patent drawing
  • US12105721B2 patent drawing
  • US12105721B2 patent drawing

AI summary

An enterprise resource planning system server comprising a SQL database and an executing module to execute an SQL query according to an execution plan to generate execution data relative to the execution of each SQL query; a monitoring module to determine an estimated execution plan metric associated with executing the SQL query according to the execution plan, and to determine whether a hardware performance metric associated with executing the query plan exceeds a hardware performance metric threshold. The monitoring module also determines whether the SQL query is invalid by comparing an execution plan metric associated with executing the execution plan with the estimated execution plan metric in response to determining that the server performance metric exceeds the server performance metric threshold.