Object Save Sequencing via Priority Sorting
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In a client-server architecture, the finalize sequence for saving business objects to persistent storage can be influenced by cross-dependencies between objects, leading to inaccurate recording of data states due to sequencing issues during the save process.
Innovation Solution
Assigning priorities to business objects before instantiation, sorting them based on these priorities, and saving them in sequence to minimize conflicts caused by dependencies, using alpha-numeric values, time of creation, and relative positions in the software hierarchy as sort criteria.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If business objects are saved in arbitrary or default sequence, then the save process is simple, but data integrity is compromised due to cross-dependencies between objects
Solution Approach 1:
The system performs preliminary actions by assigning priority values to business objects before the finalize sequence begins. This pre-assignment of priorities based on object dependencies ensures that when objects are saved during finalization, they are saved in the correct sequence to maintain data integrity, with higher-priority objects (those that other objects depend on) being saved first.
2Reliability
If business objects are saved in priority-based sequence, then data integrity is maintained, but the save process becomes more complex
Solution Approach 1:
The system performs the complex task of determining save sequence as a preliminary action during object instantiation or class definition, rather than during the time-critical finalize sequence. By pre-calculating and storing priority values, the actual save process simply needs to sort and execute in the predetermined sequence, significantly reducing processing time during finalization.
3Measurement precision
If cross-dependencies between business objects are handled without prioritization, then the implementation is straightforward, but sequencing errors occur leading to inaccurate data states
Solution Approach 1:
The system introduces a new parameter (priority value) to business objects to resolve the complexity of managing cross-dependencies. By changing the state of objects to include this priority parameter and using it to determine save sequence, the system achieves accurate data state recording without requiring complex real-time dependency analysis during the save process.
Data Source
AI summary
Systems, methods and apparatus, including computer program products, are provided for saving a plurality of objects to persistent storage as part of a finalize sequence. In one implementation, a computer-implemented method may include, receiving a request to instantiate a plurality of objects; sorting the plurality of objects based on a priority assigned to each of the plurality of objects before the request to instantiate the objects is received; and saving in sequence the sorted plurality of objects to the persistent storage.


