COLE: A Column-based Learned Storage for Blockchain Systems
Ce Zhang, Cheng Xu, Haibo Hu, Jianliang Xu
TL;DR
COLE addresses blockchain storage overhead by combining a column-based layout with learned index models and an LSM-tree to optimize writes while maintaining data integrity and provenance. By storing each state's historical values contiguously as columns and indexing with disk-optimized learned models, COLE dramatically reduces storage size and improves throughput compared to MPT. A streaming Merkle-file construction authenticates data within each on-disk run, and a checkpoint-based asynchronous merge maintains cross-node synchronization of $H_{state}$ without incurring long-tail latency. Experimental results show up to 94% storage reduction and a 1.4–5.4× throughput boost over MPT, with asynchronous merging further reducing tail latency by 1–2 orders of magnitude. Overall, COLE provides a practical path to scalable provenance-supported blockchain storage while addressing write-read IO and integrity requirements.
Abstract
Blockchain systems suffer from high storage costs as every node needs to store and maintain the entire blockchain data. After investigating Ethereum's storage, we find that the storage cost mostly comes from the index, i.e., Merkle Patricia Trie (MPT). To support provenance queries, MPT persists the index nodes during the data update, which adds too much storage overhead. To reduce the storage size, an initial idea is to leverage the emerging learned index technique, which has been shown to have a smaller index size and more efficient query performance. However, directly applying it to the blockchain storage results in even higher overhead owing to the requirement of persisting index nodes and the learned index's large node size. To tackle this, we propose COLE, a novel column-based learned storage for blockchain systems. We follow the column-based database design to contiguously store each state's historical values, which are indexed by learned models to facilitate efficient data retrieval and provenance queries. We develop a series of write-optimized strategies to realize COLE in disk environments. Extensive experiments are conducted to validate the performance of the proposed COLE system. Compared with MPT, COLE reduces the storage size by up to 94% while improving the system throughput by $1.4\times$-$5.4\times$.
