作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 专栏 • 上一篇    下一篇

一种应用于闪存数据库的高效B+树索引机制

周斯忠,陈耀武   

  1. (浙江大学数字技术及仪器研究所,杭州 310027)
  • 收稿日期:2012-09-27 出版日期:2013-09-15 发布日期:2013-09-13
  • 作者简介:周斯忠(1988-),男,硕士研究生,主研方向:闪存数据库技术,嵌入式系统,多媒体技术;陈耀武,教授、博士生导师
  • 基金资助:

    国家自然科学基金资助项目(40927001);浙江省级重点科技创新团队基金资助项目(2011R09021-02)

An Efficient B+ Tree Index Mechanism for Flash-based Database

ZHOU Si-zhong, CHEN Yao-wu   

  1. (Institute of Advanced Digital Technology and Instrument, Zhejiang University, Hangzhou 310027, China)
  • Received:2012-09-27 Online:2013-09-15 Published:2013-09-13

摘要:

为解决现有闪存数据库索引机制无法同时具备高索引更新性能和高检索性能的问题,提出一种应用于闪存数据库的高效B+树索引机制。该机制采用日志方式更新索引,利用日志缓存区保证日志快速写入闪存。针对日志方式检索效率低的缺陷,设计节点日志映射表,通过哈希映射直接索引节点更新记录,避免全局搜索节点日志。将更新日志整合为B+树逻辑节点,使索引检索转化为B+树深度搜索,在此基础上设计节点缓存区,提高节点检索效率。实验结果表明,该机制相比日志型索引机制BFTL,更新效率提高了51%、检索效率提高了2.3倍,相比基于Nand闪存转换层的B+树索引机制,在保证与其相当的高检索效率的同时,更新效率提高了2.4倍。

关键词: 闪存数据库, B+树, 日志结构索引, 节点日志映射表, 日志整合, 节点缓存区

Abstract:

To solve the problem that current flash-based database index mechanisms do not have both high update and query performance, this paper proposes an Efficient B+ Tree Indexing Mechanism(EBTIM) for flash-based database. EBTIM updates the index through log method, and a buffer is designed to ensure that loges are efficiently written to flash. Due to low index query efficiency of log update method, a node-log map table is designed to avoid global search log for index. Meanwhile at the right time loges are integrated into the B+ tree logic node to optimize the index query. Furthermore, a node cache is designed to improve the index query efficiency. A Experi- mental result show that EBTIM improves the update efficiency by 51% and query efficiency by 2.3 times compared to BFTL, and it has the same query efficiency of B+ tree index mechanism based on Nand Flash Translation Layer(NFTL), but it improves the update efficiency by 2.4 times compared to NFTL.

Key words: flash-based database, B+ tree, log-structured index, node-log mapping table, log integration, node cache area

中图分类号: