信息安全研究 ›› 2022, Vol. 8 ›› Issue (5): 429-.

• 区块链与可信交易专题 • 上一篇    下一篇

库中库:新型区块链数据库架构

蔡维德;李明顶;杨冬   

  1. (数字社会与区块链实验室(北京航空航天大学)北京100083)
  • 出版日期:2022-05-07 发布日期:2022-05-03
  • 通讯作者: 蔡维德 博士,教授,博士生导师.主要研究方向为区块链、软件工程、众包、云计算以及服务计算. tsai@tiandetech.com
  • 作者简介:蔡维德 博士,教授,博士生导师.主要研究方向为区块链、软件工程、众包、云计算以及服务计算. tsai@tiandetech.com 李明顶 主要研究方向为计算机网络通信. limingding86@gmail.com 杨冬 硕士.主要研究方向为区块链与网络. yangdong2019@buaa.edu.cn

DB-in-DB: A New Blockchain Database Architecture

  • Online:2022-05-07 Published:2022-05-03

摘要: 由于区块链系统具有不可篡改性,其数据量只会增多不会减少,随着现有区块链系统的数据量越来越大,区块链数据的查询与写入效率逐渐减小,影响到区块链的性能.传统上区块链系统内有1个数据库系统,但是现有的数据库如关系型数据库、非关系型数据库以及内存数据库等都各有其优缺点,无法满足区块链系统对性能的要求.提出一个新型数据库系统“库中库”,就是区块链系统内的数据库系统中还有1个小型区块链系统,因此一个区块链系统内部不但有数据库系统还有另外一个区块链系统.库中库系统结合关系型数据库的特点利于数据查询,同时借鉴非关系型数据库的非结构化存储结构,且采用内存数据库的高性能方案,保障了数据库的高速写入以及查询的特点,同时具有复杂查询的功能.库中库的元数据由区块链存储,保证元数据不被损坏且无法被篡改或删除,从而保证数据库系统的高安全性以及容错性.对数据库进行了查询以及写入测试,测试结果显示,该区块链数据库性能相比传统数据库显著提升,且容错性更高.

关键词: 库中库, 区块链, 数据库, 数据湖, 互链网

Abstract: Due to data immutability, blockchain data can increase only. With everincreasing data and new system query requirements, existing database systems can no longer meet the needs of blockchain systems. This paper proposes a new database system design, DBinDB, where an external blockchain system contains at least one database system, and the database system contains an internal blockchain system. The internal blockchain system will store and process metadata. We have developed such a system, and the performance of this new DBinDB system has exceeded many popular database systems such as My SQL, MongoDB, and Redis in various aspects.

Key words: DBinDB, blockchain, database, data lake, ChainNet