N-ary Tree Data Model Subgroup Indexing for Insert Performance

Solution Overview

Problem

Existing software applications face inefficiencies in retrieving and making corrections (additions, deletions, or modifications) in large complex reporting data stored in N-ary tree models, particularly due to performance degradation during insert operations and costly change and error log maintenance.

Innovation Solution

The introduction of subgroups and subordinal numbers allows for efficient data manipulation by maintaining constant sequence numbers, reducing the need for frequent updates and resequencing, and using these numbers to identify node positions within the tree data model.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If sequence number field is used to identify sibling positions in N-ary tree model, then efficiency in fetching paged datasets is improved, but database write performance degrades after insert operations due to resequencing requirements

Engineering Contradiction:
Core Design Contradiction:
SpeedVSProductivity

Solution Approach 1:

The patent segments the sequence number field into two separate fields: subgroup number and subordinal number. The subgroup number identifies the parent group, while the subordinal number identifies the position within that subgroup. This segmentation allows inserts to occur within a subgroup without requiring resequencing of the entire dataset, thus maintaining write performance while preserving the ability to efficiently fetch paged datasets using the subgroup number.

Inventive Principle:
Principle #1Segmentation

2Ease of operation

If traditional N-ary tree model with sequence number field is used, then hierarchical data storage with parent-child relationships is achieved, but performance degradation occurs during insert operations requiring resequencing

Engineering Contradiction:
Core Design Contradiction:
Ease of operationVSProductivity

Solution Approach 1:

The patent divides the traditional sequence number field into subgroup number and subordinal number fields. This allows the hierarchical structure to be maintained through the subgroup number (parent-child relationships) while the subordinal number handles positioning within subgroups. Inserts only require updating the subordinal number within the affected subgroup, avoiding the need to resequence entire datasets and thus preventing performance degradation.

Inventive Principle:
Principle #1Segmentation

3Speed

If sequence number field is used for sibling positioning, then efficient dataset fetching is enabled, but change and error log maintenance becomes costly due to frequent updates

Engineering Contradiction:
Core Design Contradiction:
SpeedVSDevice complexity

Solution Approach 1:

By segmenting the sequence number into subgroup number and subordinal number, the patent reduces the frequency and scope of updates required in change and error logs. Only subordinal numbers within affected subgroups need to be updated during inserts, rather than resequencing entire datasets. This segmentation significantly reduces the maintenance burden of change and error logs while preserving efficient dataset fetching capabilities through subgroup number indexing.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12141115B1Efficient data manipulation
Publication Date: 2024.11.12
  • US12141115B1 patent drawing
  • US12141115B1 patent drawing
  • US12141115B1 patent drawing

AI summary

A tree data model comprising a plurality of generated nodes may be programmatically generated. Each particular node may have a sequence number uniquely identifying the node and identifying its sibling position within the generated nodes. Information on the nodes may be provided to a reporting application which presents a report in a user interface. Information may be received on additional entries inserted into the report by a user of the application. An inserted node may be inserted into the tree data model. The inserted node a subgroup number identifying which generated node of the plurality of generated nodes is the closest preceding sibling to the inserted node and a subordinal number identifying a subgroup sibling position of the inserted node within a plurality of inserted nodes having a same inserted node subgroup number.