Query Stack Generation for Cloud Data Retrieval

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current cloud computing platforms lack flexibility in retrieving aggregated information from related data objects, requiring users to write complex search queries and struggling with many-to-many relationships, which leads to inefficiencies and user-experienced latency.

Innovation Solution

A method for generating query stacks that optimize the number of queries needed by maximizing parent lookup operations and minimizing child lookup operations, allowing for efficient retrieval of data through Salesforce Object Query Language (SOQL) queries by navigating indirect and arbitrary object relationships, thereby enabling flexible data retrieval without requiring users to write SOQL code.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If users write their own search queries to retrieve aggregated information from related data objects, then data retrieval flexibility is improved, but system complexity and user effort increase

Engineering Contradiction:
Improvedata retrieval flexibilityVSAvoidquery writing complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent introduces an intermediary system (the query generation module) that automatically translates user-friendly criteria into optimized query stacks. This mediator handles the complexity of navigating many-to-many relationships and generating efficient query sequences, while users only need to specify simple retrieval criteria.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system performs self-service by automatically generating and optimizing query stacks without requiring user intervention in the complex query writing process. The platform autonomously navigates object relationships, determines the optimal number and sequence of queries, and executes retrieval operations.

Inventive Principle:
Principle #25Self-service

2Adaptability or versatility

If the system navigates through arbitrary number of entity relationships to retrieve aggregated information, then data aggregation capability is improved, but query execution time increases

Engineering Contradiction:
Improvedata aggregation capabilityVSAvoidquery execution time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent segments the retrieval process into multiple optimized queries that are executed in a specific sequence. By breaking down complex navigation through arbitrary entity relationships into manageable query segments, the system retrieves aggregated information efficiently while minimizing total execution time.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system performs preliminary analysis of the object relationship model to pre-determine the optimal query stack sequence before execution. This preliminary action identifies the most efficient path through relationships and prepares the query sequence in advance, reducing actual execution time.

Inventive Principle:
Principle #10Preliminary action

3Measurement precision

If the system requires users to write SOQL queries for data retrieval, then query precision is improved, but ease of operation deteriorates

Engineering Contradiction:
Improvequery precisionVSAvoiduser operation simplicity
Core Design Contradiction:
Measurement precisionVSEase of operation

Solution Approach 1:

The patent introduces an intermediary layer that translates user-friendly retrieval criteria into precise SOQL queries automatically. This mediator maintains query precision by generating optimized SOQL statements while shielding users from the complexity of writing and understanding SOQL syntax.

Inventive Principle:
Principle #24Intermediary (Mediator)

4Loss of information

If the system performs multiple child lookup operations to retrieve related data, then data completeness is improved, but number of queries increases

Engineering Contradiction:
Improvedata completenessVSAvoidquery retrieval efficiency
Core Design Contradiction:
Loss of informationVSProductivity

Solution Approach 1:

The patent merges multiple child lookup operations into optimized query sequences by strategically ordering queries to maximize parent lookups and minimize child lookups. This combining approach maintains data completeness while reducing the total number of queries required for retrieval.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS11314735B2Generation of query stacks from object relationships
Publication Date: 2022.04.26 SALESFORCE INC
  • US11314735B2 patent drawing
  • US11314735B2 patent drawing
  • US11314735B2 patent drawing

AI summary

System and methods are described for generating query stacks from object relationships. In one implementation, a method comprises receiving user input specifying an initial object and a target object; identifying a plurality of directionality relationships associated with the initial object, the target object, and one or more junction objects that link the initial object to the target object; generating, based on the plurality of directionality relationships, a query stack comprising a plurality of queries linking the initial object to the target object; and executing the query stack to retrieve data stored in the target object.