Aggregating Dependent Object Keys via Parent-Child Storage Segmentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Relational databases face challenges in efficiently aggregating keys of dependent objects, particularly in hierarchical structures, where existing methods struggle to effectively traverse and collect all related objects from primary objects.

Innovation Solution

The proposed solution involves a Native Stored Procedure (NSP) approach that uses dynamically generated SQL to query catalog tables, employing an object evaluation process that distinguishes between parent and child directions to identify and aggregate related objects by marking entries as visited or unvisited in temporary tables, ensuring all unique entries are processed.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If traditional methods are used to traverse and aggregate related objects in hierarchical database structures, then the aggregation process becomes complex and inefficient, but using the NSP approach with dynamic SQL generation and visited/unvisited marking improves efficiency while requiring additional temporary storage structures

Engineering Contradiction:
Improveaggregation efficiencyVSAvoidstorage structure complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent segments the aggregation process into two distinct storage structures: parent keys storage for storing primary keys of parent objects, and child keys storage for storing primary keys of child objects. This segmentation allows independent processing of parent-child relationships in hierarchical databases, improving traversal efficiency while maintaining manageable storage complexity through structured organization.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies preliminary action by marking entries as 'visited' or 'unvisited' before the actual aggregation process begins. The primary key of the input object is pre-loaded into both parent keys storage and child keys storage with 'unvisited' status, enabling the iterative traversal process to systematically process all related objects without redundant operations, thus improving aggregation efficiency.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If comprehensive traversal of all related objects is performed to ensure complete aggregation, then all dependent objects are captured, but redundant processing occurs without efficient tracking mechanisms

Engineering Contradiction:
Improveaggregation completenessVSAvoidprocessing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent implements feedback mechanisms through the visited/unvisited marking system. After processing each object's related objects, the system updates the status markers to reflect which objects have been processed. This feedback loop ensures that the iterative traversal continues only until all objects are visited, guaranteeing complete aggregation while preventing redundant processing of already-handled objects, thus optimizing processing time.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent introduces intermediary structures (parent keys storage and child keys storage with visited/unvisited markers) that mediate between the input object and the final aggregated result. These intermediaries track the traversal state and coordinate the systematic exploration of hierarchical relationships, ensuring no object is missed while avoiding redundant processing cycles.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Adaptability or versatility

If dynamic SQL generation is used to query catalog tables, then query flexibility and adaptability improve, but query complexity and potential for errors increase

Engineering Contradiction:
Improvequery flexibilityVSAvoidquery construction complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent applies dynamics by generating SQL queries dynamically based on the actual data structure and relationships in the hierarchical database. Rather than using static, pre-defined queries, the system adapts query construction to the specific parent-child relationships and catalog table structures being traversed, enabling flexible adaptation to different database schemas and object types while systematically managing query complexity through the structured NSP approach.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS8914343B2Aggregating keys of dependent objects for a given primary object
Publication Date: 2014.12.16 CA TECH INC
  • US8914343B2 patent drawing
  • US8914343B2 patent drawing
  • US8914343B2 patent drawing

AI summary

Keys are obtained and aggregated by storing a primary object as an entry in a parent keys storage and a child keys storage, the entry identified as unvisited in each. An object evaluation process is then performed until all unique entries in the parent keys storage and all unique entries in the child keys storage have been visited and by committing the keys of at least one related object as an entry to the hierarchical database. The object evaluation process visits each unvisited object in the parent keys storage and child keys storage by selecting, for the unvisited object, objects in the parent direction that have not already been visited and objects in the child direction that have not already been visited and by inserting the keys of the selected related objects as entries in the parent keys storage or child keys storage.