Database Query Termination Tracking for Processing Optimization
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Database management systems face inefficiencies in query processing due to complex queries and poorly configured tables, leading to long processing times and user impatience, resulting in premature query terminations and wasted resources.
Innovation Solution
An apparatus and program product that track premature query terminations to generate and implement suggestions for improving query processing, including building a waiting value for users and warning them about estimated long-processing queries, and suggesting optimizations such as rescheduling, creating statistics, or changing system configurations.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If query processing is allowed to complete fully, then processing accuracy is improved, but processing time increases excessively causing user impatience and premature termination
Solution Approach 1:
The system performs preliminary actions by monitoring query execution in advance and detecting premature termination conditions before they occur. The database management system tracks query progress and predicts when users are likely to terminate based on execution patterns, allowing preventive intervention to complete critical processing steps.
Solution Approach 2:
The system implements feedback mechanisms by continuously monitoring query execution parameters and comparing them against established thresholds. When queries approach termination conditions, the system provides feedback through automatic adjustments to query prioritization, resource allocation, or execution parameters to ensure completion of essential processing.
2Reliability
If complex queries are executed with full resources, then processing completeness is improved, but system resource consumption increases excessively
Solution Approach 1:
The system applies partial action by executing only the necessary portion of complex queries that ensures completion before termination conditions are met. Instead of allowing unlimited resource consumption, the system identifies and executes critical processing steps while stopping before excessive resource usage occurs, achieving sufficient processing completeness without wasteful consumption.
Solution Approach 2:
The system changes execution parameters dynamically based on query progress and resource usage patterns. When queries approach termination thresholds, the system adjusts parameters such as resource allocation, execution priority, or processing speed to balance completion requirements with resource conservation, preventing excessive consumption while maintaining necessary processing.
3Measurement precision
If query execution time is extended to complete processing, then result accuracy is improved, but user satisfaction decreases due to impatience
Solution Approach 1:
The system performs preliminary monitoring and prediction of user termination behavior before actual termination occurs. By analyzing execution patterns and predicting when users are likely to become impatient, the system takes preliminary actions to ensure critical processing completes within acceptable timeframes, balancing accuracy requirements with user patience limits.
Solution Approach 2:
The system implements self-service by automatically adjusting query execution based on real-time monitoring without requiring user intervention. The database management system independently detects termination conditions and applies corrective measures such as priority adjustments or resource reallocation to ensure query completion within user patience thresholds, eliminating the need for users to manually manage execution time.
Data Source
AI summary
An apparatus and program product that utilize at least one prematurely terminated processing of a database query to improve the processing of the database query. The embodiments discussed track termination information associated with at least one user initiated premature termination of processing of a database query to improve the processing of the database query. Information related to the premature terminations of a database query may be utilized by a DBMS to generate and/or implement suggestions to improve the processing of the database query, resulting in improved query processing, improved performance, fewer premature terminations, and more satisfied users.


