Key-Value Store Tree Selective Key Portion Navigation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Key-value store (KVS) trees tend to degenerate into unbalanced trees when operating in only prefix mode, leading to inefficient search, access, and storage operations due to the distribution of keys among prefixes, which affects the overall performance of computer systems accessing key-value pairs.
Innovation Solution
The implementation of selective key usage within a KVS tree, where different portions of a key are used to navigate and store key-value pairs across various levels, maintaining a balanced tree structure by using a prefix for initial navigation and the entire key for subsequent levels, thereby preserving locality and preventing degeneration.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If prefix mode is used for key navigation in KVS tree, then key distribution and storage are simplified, but the tree structure degenerates into unbalanced state reducing search efficiency
Solution Approach 1:
The patent segments the key into two portions: a prefix portion for initial navigation and a suffix portion for precise location. This segmentation allows the system to benefit from both simplified prefix-based navigation and efficient precise search, preventing tree degeneration while maintaining operational simplicity.
Solution Approach 2:
The patent applies different navigation strategies to different levels of the tree. Upper levels use prefix-based navigation for broad distribution, while lower levels use suffix-based navigation for precise location. This local differentiation maintains balanced tree structure while optimizing search efficiency at each level.
2Stability of the object's composition
If entire key is used for navigation at all levels, then tree balance is maintained, but prefix-based optimization for locality is lost
Solution Approach 1:
By segmenting the key into prefix and suffix portions, the system can use prefix for high-level navigation to maintain tree balance and locality, then switch to suffix for precise leaf-level navigation. This resolves the contradiction between maintaining balance and optimizing access efficiency.
Solution Approach 2:
The patent dynamically switches between prefix-based and suffix-based navigation based on the current level in the tree. This dynamic adaptation allows the system to optimize for tree balance at upper levels and for access efficiency at lower levels, resolving the contradiction between stability and productivity.
3Productivity
If selective key portion usage is implemented, then tree balance and access efficiency are improved, but navigation logic complexity increases
Solution Approach 1:
Segmenting the key into prefix and suffix portions allows for a systematic approach to navigation that, while more complex than simple prefix mode, provides clear separation of concerns: prefix for distribution and suffix for precision. This structured segmentation makes the added complexity manageable and purposeful.
Data Source
AI summary
Aspects of the present disclosure provide various embodiments for selective use of a portion of a key, such as a prefix of the key (also referred to as a key prefix of a key), with respect to a key-value store (KVS) tree data structure, such as when storing a key-value pair (associated with the key) within the KVS tree data structure or navigating through the KVS tree data structure. For some embodiments, when navigating a KVS tree based on a key, a first set of levels (e.g., a first series of levels) of the KVS tree is navigated by a first portion (e.g., a prefix) of the key, and a second set of levels (e.g., a second series of levels) of the KVS tree is navigated by a second portion (e.g., an entire portion) of the key.


