Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2009, Vol. 35 ›› Issue (5): 25-27. doi: 10.3969/j.issn.1000-3428.2009.05.009

• Software Technology and Database • Previous Articles     Next Articles

Approach for Handling Duplicate Keys in B+Tree

XU Yi-wen1,2, FANG Yu1,2, CHEN Hong-zhong1,2   

  1. (1. Department of Computer Science and Technology, Tongji University, Shanghai 201804; 2. Key Lab of Embedded System and Service Computing, Ministry of Education, Tongji University, Shanghai 201804)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-03-05 Published:2009-03-05

一种处理B+树重复键值的方法

徐逸文1,2,方 钰1,2,陈闳中1,2   

  1. (1. 同济大学计算机科学与技术系,上海 201804;2. 同济大学嵌入式系统与服务计算教育部重点实验室,上海 201804)

Abstract: Overflow page is commonly used to deal with the duplicate keys of a B+ tree index, although it is easy to implement, it introduces great space waste. This paper adopts an alternative approach to make the B+ tree explicitly support the duplicate keys by revising the index structure, and provides the basic algorithms to implement the idea. Experiment indicates that the revised B+ tree can significantly reduce the size of the index file, which broadens the application area of B+ tree.

Key words: B+ tree, duplicate keys, overflow page

摘要: 当前B+树索引结构常采用“溢出页”处理重复出现的键值,易于实现,但存在严重的空间浪费。该文通过改进索引结构的定义,使B+树能够显式支持重复键值,并给出相应算法。实验证明,采用该方法的B+树能有效减少索引文件的大小,使B+树满足更多数据库索引的需求。

关键词: B+树, 重复键值, 溢出页

CLC Number: