首页 | 本学科首页   官方微博 | 高级检索  
     

一种面向事务型数据库的无锁并发B+tree索引结构
引用本文:李乔,赵鸿昊,江鹏,张兆心. 一种面向事务型数据库的无锁并发B+tree索引结构[J]. 高技术通讯, 2017, 27(1). DOI: 10.3772/j.issn.1002-0470.2017.01.002
作者姓名:李乔  赵鸿昊  江鹏  张兆心
作者单位:1. 上海期货信息技术有限公司 上海 200122;2. 哈尔滨工业大学网络与信息安全研究中心 哈尔滨 150001
基金项目:国家科技支撑计划,国家自然科学基金,国家信息安全计划
摘    要:为了克服现有多版本并发控制(MVCC)进行数据的并发访问控制中短暂阻塞的缺点,达到读写完全并发,提出了一种基于写时复制的多版本并发B+tree(BCMVBT)索引结构。BCMVBT通过复制分离读写的操作空间以使读写事务在任意时刻完全并发执行,规避比较与交换(CAS)操作带来的高CPU消耗,达到一写多读场景下的完全并发。同时针对现有多版本开发B+tree(MVBT)范围查询的复杂操作,提出了无锁的BCMVBT的范围查询算法和回收机制,从而实现了索引的插入、查询、更新与回收的无锁并发操作。通过与事务型MVBT(transaction MVBT)的对比,在读写并发环境下BCMVBT的时间消耗降低了50%,实验进一步表明BCMVBT在大事务的场景下具有更高的优势。

关 键 词:事务  索引  B+tree(BT)  多版本并发  写时复制(COW)

A wait-free concurrent B+tree index scheme for transaction databases
Li Qiao,Zhao Honghao,Jiang Peng,Zhang Zhaoxin. A wait-free concurrent B+tree index scheme for transaction databases[J]. High Technology Letters, 2017, 27(1). DOI: 10.3772/j.issn.1002-0470.2017.01.002
Authors:Li Qiao  Zhao Honghao  Jiang Peng  Zhang Zhaoxin
Abstract:In order to overcome multi-version concurrent control (MVCC)''s disadvantage of short obstruction in its concurrent control of data access to achieve the full read-write concurrency, a new index scheme based on copy on write (BC) with multi-version concurrency B+tree, called the BCMVBT, was presented.The BCMVBT uses the copy of the operation space for read-write separation to make the read-write transaction be concurrently conducted.Moreover, it avoids the CPU consumption caused by compare and swap (CAS) operations to achieve the full concurrency under write-once-read-many scenarios.Additionally, the current MVBT range query algorithm was improved and a recovery mechanism with wait-free manner was proposed in order to achieve full concurrency of insert/delete/recycle operations.Compared to TMVBT, BCMVBT reduces time cost by 50%.Further experiments show that BCMVBT is more efficient in large transaction environment.
Keywords:transaction  index structure  B+tree (BT)  multi-version concurrency  copy on write (COW)
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号