Abstract
Querying historical data in blockchain systems often requires resource-intensive linear traversals of the ledger. This paper proposes two novel indexing schemes, TDASL and PPBPT, designed to facilitate efficient multi-dimensional historical queries without the significant performance overhead of traditional re-indexing. By leveraging prefix-based skip lists and predefined B+ tree templates, these models address the "historical bottleneck" while maintaining low storage and construction costs.
The Challenge of Historical Data in Blockchain
While blockchains excel at maintaining the current "World State," retrieving historical data remains a significant challenge. Standard architectures require traversing the chain block-by-block to reconstruct the state of an account at a specific point in time. Existing improvements, such as LineageChain, utilize skip lists to speed up this process but suffer from two primary limitations:
- Dimension Blindness: They typically support only one-dimensional data (e.g., just account balance).
- Reconstruction Fatigue: High-performance structures like B+ trees are difficult to implement because they require costly rebalancing or rebuilding every time a new block is appended.
Proposed Indexing Methods
The authors introduce two distinct indexing strategies tailored for different performance requirements.
TDASL: Two-tier Deterministic Appended Only Skip List
TDASL evolves the standard skip list by adding a second "upper tier" that serves as a shortcut for finding specific historical ranges. To support multi-dimensional queries, it incorporates prefix fields. These fields act as tags tracking the version count of specific attributes (e.g., balance vs. reputation), allowing the system to jump directly to the version where a specific attribute was modified.
PPBPT: Predefined Partition B-plus Tree
While B+ trees offer superior query speeds, their maintenance in a blockchain context is usually too "heavy." PPBPT bypasses reconstruction costs by using a predefined template. Instead of rebalancing the tree for every update, the system uses a "blank" tree structure with reserved placeholders. New data is simply slotted into these pre-allocated "seats," significantly reducing the computational overhead of index maintenance.
Experimental Evaluation
The models were evaluated on Hyperledger Fabric v2.0 using a synthetic workload of 16,384 transactions. The researchers tested configurations ranging from 2 to 16 dimensions per account and benchmarked the results against LineageChain and Partitioned B-Tree (PBT).
Key Performance Insights
- Query Latency: PPBPT emerged as the clear leader in query speed, consistently outperforming both TDASL and LineageChain as the number of dimensions increased.
- Construction Efficiency: LineageChain remains the fastest to build due to its simplicity. However, PPBPT significantly reduces construction costs compared to traditional PBT by avoiding tree rebalancing.
- Storage Footprint: PPBPT is more space-efficient than TDASL. The multiple pointer layers required by TDASL's skip list result in a faster-growing storage footprint compared to the compact B+ tree structure of PPBPT.
Conclusion and Future Directions
The choice between these models depends on the specific blockchain workload. TDASL is "lazy" and fast to update, making it ideal for high-throughput, write-heavy environments. PPBPT is more organized and optimized for read-heavy applications where historical queries are frequent.
A noted limitation is that PPBPT still carries a higher construction cost than simple skip lists. Future research will focus on integrating privacy-preserving techniques, such as Zero-Knowledge Proofs, to ensure that the increased searchability of blockchain history does not compromise sensitive user data.
Summary updated