SQL Query Merging for Fewer Database Access Delays

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Multiple SQL queries accessing the same database repeatedly consume excessive computing and power resources and introduce delays due to repeated database accesses.

Innovation Solution

Combine multiple SQL queries into a single, optimized query that accesses the database once to retrieve all data, using pattern recognition to merge shared database accesses.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If multiple SQL queries are executed separately to retrieve data from a database, then each query can be executed independently and simply, but the database is accessed repeatedly consuming excessive computing resources and power

Engineering Contradiction:
Improvequery execution simplicityVSAvoidcomputing resource consumption
Core Design Contradiction:
Ease of operationVSUse of energy by moving object

Solution Approach 1:

The patent combines multiple SQL queries into a single query that retrieves all required data in one database access operation. The system analyzes multiple queries, identifies common data retrieval patterns, and merges them into one optimized query that eliminates repeated database accesses, thereby reducing computing resource consumption and energy usage while maintaining operational simplicity.

Inventive Principle:
Principle #5Merging (Combining)

2Measurement precision

If multiple SQL queries access the database repeatedly, then each query can retrieve its specific data, but retrieval delays are introduced due to repeated database access operations

Engineering Contradiction:
Improvedata retrieval accuracyVSAvoiddata retrieval delay
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent merges multiple SQL queries into a single query that retrieves all required data simultaneously in one database access operation. This eliminates the sequential execution of multiple queries and their associated access delays, while the query optimization ensures that all required data is retrieved with the same precision and accuracy as individual queries would provide.

Inventive Principle:
Principle #5Merging (Combining)

3Productivity

If multiple separate SQL queries are used to manage database data, then each query can be optimized independently, but the overall system efficiency decreases due to repeated database accesses

Engineering Contradiction:
Improvedata retrieval efficiencyVSAvoidpower resource usage
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The patent combines multiple SQL queries into one optimized query that retrieves all required data in a single database access operation. This merging eliminates redundant data retrieval operations and reduces the total number of database access calls, thereby improving overall productivity and reducing power resource consumption associated with repeated database operations.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent creates a universal query template that can serve multiple data retrieval needs simultaneously. The optimized query is designed to retrieve various types of data that would otherwise require multiple separate queries, making it a multi-functional solution that improves efficiency while reducing energy loss across different data retrieval scenarios.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS12536176B2Combining structured query language (SQL) queries
Publication Date: 2026.01.27 CAPITAL ONE SERVICES LLC
  • US12536176B2 patent drawing
  • US12536176B2 patent drawing
  • US12536176B2 patent drawing

AI summary

In some implementations, a system may identify a plurality of SQL queries. The system may determine that the plurality of SQL queries is configured to manage data associated with a database via respective accesses of the database. The system may combine, based at least in part on determining that the plurality of SQL queries is configured to manage the data associated with the database, the plurality of SQL queries into a combined SQL query configured to manage the data associated with the database via a combined access of the database.