Database Query Cancellation via Network Disconnection Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing database querying methods face challenges when dealing with large datasets spread across multiple tables, as they become complex and error-prone due to unclear relationships between tables, making it difficult to generate effective queries.

Innovation Solution

A method and system for querying databases using a model-based approach, where a starting node and selected leaves are used to generate database queries, allowing for aggregation and filtering of results, and enabling users to 'drill down' into detailed data sets, while also incorporating non-blocking socket technology to cancel queries if the network connection is lost.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If data is stored across multiple database tables, then data organization and storage efficiency are improved, but query complexity and error probability increase

Engineering Contradiction:
Improvedata storage capacityVSAvoidquery complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The patent introduces an intermediary layer between the user and the database tables. This intermediary automatically generates and executes SQL queries based on user selections from dropdown menus, translating high-level user intentions into complex database operations without requiring users to understand table relationships or SQL syntax.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent segments the query generation process into distinct, manageable steps: selecting a starting table, choosing leaves (columns), and automatically generating the query. This segmentation breaks down the complex task of writing SQL queries into simple, guided choices that reduce errors and improve accessibility.

Inventive Principle:
Principle #1Segmentation

2Productivity

If complex queries are executed on large datasets, then data analysis capability is improved, but resource consumption and execution time increase

Engineering Contradiction:
Improvedata analysis capabilityVSAvoidquery execution time
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent performs preliminary actions by pre-defining the available tables and leaves in dropdown menus, and by automatically generating optimized SQL queries before execution. This preliminary preparation ensures that queries are efficiently constructed and executed, reducing unnecessary processing time.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system provides feedback mechanisms through dropdown menus that show available tables and leaves, and through automatic query generation that adapts to user selections. This feedback loop helps users make informed choices and allows the system to optimize query construction based on actual data structures.

Inventive Principle:
Principle #23Feedback

3Reliability

If network connection is lost during query execution, then system stability should be maintained, but resource wastage occurs without automatic cancellation

Engineering Contradiction:
Improvesystem stabilityVSAvoidcomputational resource wastage
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

The patent implements a feedback mechanism that continuously monitors network connection status during query execution. When a connection loss is detected, the system receives feedback about the failed connection and automatically cancels the ongoing query, preventing further resource consumption.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system prepares for potential network failures by implementing error handling and query cancellation mechanisms in advance. This beforehand cushioning ensures that when network issues occur, the system can gracefully handle the situation and stop resource-consuming operations without crashing or wasting excessive resources.

Inventive Principle:
Principle #11Beforehand cushioning (Prior cushioning)

Data Source

PatentUS12056196B2Systems and methods for cancelling a query
Publication Date: 2024.08.06 GOOGLE LLC
  • US12056196B2 patent drawing
  • US12056196B2 patent drawing
  • US12056196B2 patent drawing

AI summary

Systems and methods for cancelling a query are disclosed. A method includes establishing a connection over a network with a user computing device associated with a user, receiving, from the user computing device via the connection, a query request requesting query results from a database and, based on the query request, instructing, via the network, a server to begin executing a database query against the database. The method also includes determining that the connection is disconnected and, in response to determining that the connection is disconnected, instructing, via the network, the server to stop executing the database query.