Graph Database Path-Based Update Mechanism
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Graph databases require multiple database transactions for updating values, leading to increased computational and network resource usage, necessitating an efficient approach for updating values.
Innovation Solution
Implementing path-based updates in graph databases, where a single update request updates a value in a single child node, and subsequent read requests calculate the shortest path to retrieve the updated value, reducing the need for multiple database trips.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If multiple database transactions are used to update values in graph databases, then data accuracy is maintained, but computational resource usage and network resource usage increase
Solution Approach 1:
The patent merges multiple separate database update transactions into a single batched update operation. Multiple value updates that would traditionally require separate transactions are combined into one transaction that updates multiple nodes along a path simultaneously, reducing the total number of transactions while maintaining data consistency through atomic commit semantics.
Solution Approach 2:
The system performs preliminary actions by calculating the shortest path and identifying all nodes that need updates before executing the database transaction. This pre-computation of the update plan allows the system to batch multiple updates together in a single transaction, avoiding the need for multiple separate transactions while ensuring data accuracy.
2Reliability
If multiple database transactions are used to update values in graph databases, then data consistency is ensured, but network resource usage increases
Solution Approach 1:
The patent combines multiple network round-trips into a single network transaction by batching multiple update operations. Instead of sending separate update requests for each node along the path, the system consolidates these into one network call that updates all necessary nodes atomically, significantly reducing network resource consumption.
3Ease of operation
If traditional update methods are used in graph databases, then each update operation is simple, but multiple database trips are required
Solution Approach 1:
The patent creates a universal update mechanism that handles both single-node and multi-node updates through a single interface. The batched update function can update one node or multiple nodes along a shortest path using the same operation pattern, eliminating the need for different update procedures and reducing the number of database trips required.
4Productivity
If path-based updates are implemented, then resource usage is minimized, but system complexity increases
Solution Approach 1:
The patent introduces an intermediary shortest-path calculation module that acts as a mediator between the update request and the database operation. This intermediary component handles the complexity of path calculation and node identification, allowing the rest of the system to use simple batched update operations without needing to understand the underlying graph structure or path-finding algorithms.
Data Source
AI summary
Systems and methods for multiple updates to a database using paths is disclosed. Updates to a graph database can be performed by associating an attribute node, that stores the updated value, to the entity node to-be updated. When the entity node is queried for the value, the nearest attribute node is identified using a shortest path determination.


