Permission-Aware Database Query Execution for Search Requests

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing database queries often inadvertently access unauthorized data, leading to security breaches and inefficient use of computing resources, and manual query construction is time-consuming and prone to errors, resulting in suboptimal query design.

Innovation Solution

A system that identifies or generates optimized database queries from a library based on user permissions and search queries, using machine learning models to ensure data access compliance and efficient execution plans.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If manual query construction is used, then users can customize queries according to their needs, but it is time-consuming and prone to errors

Engineering Contradiction:
Improvequery construction easeVSAvoidquery construction time
Core Design Contradiction:
Ease of manufactureVSLoss of time

Solution Approach 1:

The system pre-generates multiple optimized query variations and stores them in a query library before they are needed. When a user submits a search query, the system retrieves pre-generated queries from the library that match the user's intent, eliminating the need for manual query construction and significantly reducing time loss.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system creates copies of successful query patterns and stores them in the query library. These copied query templates can be quickly retrieved and adapted for similar future requests, reducing the time and effort required for manual query construction while maintaining customization capabilities.

Inventive Principle:
Principle #26Copying

2Speed

If database queries are executed without permission verification, then query execution speed is faster, but unauthorized data access occurs

Engineering Contradiction:
Improvequery execution speedVSAvoiddata security
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The system performs permission verification in advance by embedding permission checks within the pre-generated query structures. When queries are retrieved from the library, they already contain the necessary permission filters, allowing the system to verify access rights before query execution without adding runtime overhead, thus maintaining both speed and security.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system introduces an intermediary permission verification layer that acts as a mediator between the user's search query and the database execution. This intermediary component checks user permissions against the required data access rights before retrieving and executing queries, ensuring data security while maintaining execution efficiency through pre-validated query structures.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Loss of energy

If optimized query execution is implemented, then computing resources are conserved, but query execution complexity increases

Engineering Contradiction:
Improvecomputing resource usageVSAvoidquery execution complexity
Core Design Contradiction:
Loss of energyVSDevice complexity

Solution Approach 1:

The system performs query optimization in advance by generating multiple optimized query variations and storing them in the library. The optimization process, which involves analyzing data access patterns, identifying efficient execution paths, and minimizing resource consumption, is completed during query generation rather than at execution time. This preliminary optimization reduces computing resource usage during actual query execution while hiding the complexity in the background preparation phase.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system enables queries to self-optimize by automatically analyzing their own execution patterns and generating optimized versions. The query generation process includes self-assessment of resource consumption and automatic refinement of execution plans, reducing the need for external optimization intervention and managing complexity through automated self-service mechanisms.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS20250390593A1Executing a database query responsive to a search query
Publication Date: 2025.12.25 CAPITAL ONE SERVICES LLC
  • US20250390593A1 patent drawing
  • US20250390593A1 patent drawing
  • US20250390593A1 patent drawing

AI summary

In some implementations, a device may receive, from a user device, a request indicating a search query, where the search query is associated with a user. The device may identify, responsive to the request, information indicating a set of data access permissions for the user. The device may identify, responsive to the request and the search query, a database query. The device may cause, provided that the set of data access permissions permits the user to access data associated with execution of the database query, execution of the database query. The device may transmit the data for the user device.