• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2026, Vol. 48 ›› Issue (5): 828-843.doi: 10.3969/j.issn.1007-130X.2026.05.007

• 计算机网络与信息安全 • 上一篇    下一篇

基于成组跳表的区块链查询系统研究

李旭东,黄宇豪,程子果,李泽麟   

  1. (1.南开大学软件学院,天津 300457;2.先进计算与关键软件(信创)海河实验室,天津 300459;
    3.天津市操作系统企业重点实验室,天津 300457)

  • 收稿日期:2024-10-28 修回日期:2025-01-19 出版日期:2026-05-25 发布日期:2026-05-21
  • 基金资助:
    国家重点研发计划(2018YFB0204304);南开大学中央高校基本科研业务费专项资金(z1a2085588);

A blockchain query system based on grouped skip list

LI Xudong,HUANG Yuhao,CHENG Ziguo,LI Zelin   

  1. (1.College of Software,Nankai University,Tianjin 300457;
    2.Haihe Laboratory of Information Technology Application Innovation,Tianjin 300459;
    3.Tianjin Key Laboratory of Operating System Enterprises,Tianjin 300457,China)
  • Received:2024-10-28 Revised:2025-01-19 Online:2026-05-25 Published:2026-05-21

摘要: 随着存储数据量增长,区块链面临大规模数据下高效查询的挑战。用户希望通过复杂查询了解区块链变化趋势,但现有区块链系统查询代价大且结果无法复用。为此提出成组跳表及基于其的区块链查询系统,该系统在现有区块链系统上增量构建,为用户提供等值查询、范围查询和top-k查询方案。首先,提出成组跳表Gskiplist数据结构,其将传统跳表节点聚合以减少节点数,从而提升查询效率。用户可对区块链数据构建不同字段的成组跳表索引,并可依据条件概率算法和热度值动态调整索引节点高度;索引节点持久化于区块链底层的存储引擎中,以保留区块链数据去中心化和不可篡改特性。其次,引入查询系统,查询系统中添加了索引和查询模块供用户高效查询。最后,与主流方案进行对比实验,实验以空间代价、插入效率和查询效率为指标,采用真实区块数据集。实验结果表明,所提系统仅以较小的空间代价,便可在区块链上支持性能良好的复杂查询,验证了其可行性和优越性。


关键词: 区块链, 成组跳表, 索引, 等值查询, 范围查询, top-k查询

Abstract: As the amount of stored data grows, blockchain faces the challenge of efficient query under large-scale data. Users hope to understand the trend of blockchain changes through complex queries. But the query cost of the existing blockchain system is high and the results cannot be reused. For this reason, a grouped skip list and a blockchain query system based on it are proposed. The system is incrementally built on the existing blockchain system to provide users with equality query, range query and top-k query solutions. Firstly, a grouped skip list (Gskiplist) data structure is proposed, which aggregates traditional skip list nodes to reduce the number of nodes, thereby improving query efficiency. Users can construct grouped skip list indexes for different fields of blockchain data, and dynamically adjust the index node height according to the conditional probability algorithm and heat value. The index node is persisted in the storage engine at the bottom of the blockchain to retain the decentralized and tamper-proof characteristics of blockchain data. Secondly, a query system is introduced, and index and query modules are added to the query system for users to query efficiently. Finally, a comparative experiment is conducted with mainstream solutions. The experiment uses space cost, insertion efficiency and query efficiency as metrics and uses real block data sets. Experimental results show that the system supports complex queries with good performance on the blockchain at a small space cost, demonstrating the feasibility and superior performance of the proposed system.

Key words: blockchain, grouped skip list, index, equality query, range query, top-k query