计算机应用 ›› 2011, Vol. 31 ›› Issue (08): 2265-2269.DOI: 10.3724/SP.J.1087.2011.02265

• 典型应用 • 上一篇    下一篇

实时数据库混合索引机制的设计与实现

刘波,范士明,刘华   

  1. 中国航天科技集团公司第五研究院 五零三研究所,北京100086
  • 收稿日期:2011-02-16 修回日期:2011-05-05 发布日期:2011-08-01 出版日期:2011-08-01
  • 通讯作者: 刘波
  • 作者简介:刘波(1983-),男,河南信阳人,博士研究生,主要研究方向:分布式实时数据库、卫星遥感信息处理;范士明(1945-),男,上海人,研究员,硕士,主要研究方向:卫星遥感信息处理;刘华(1969-),男,重庆人,高级工程师,硕士,主要研究方向:卫星遥感信息处理。
  • 基金资助:

    中国空间技术研究院CAST创新基金资助项目(cast2010-08)

Design and implementation of hybrid index mechanism for real-time database

Bo LIU,Shi-ming FAN,Hua LIU   

  1. 503 Institute, the Fifth Academy of China Aerospace Science and Technology Corporation, Beijing 100086, China
  • Received:2011-02-16 Revised:2011-05-05 Online:2011-08-01 Published:2011-08-01
  • Contact: Bo LIU

摘要: 在卫星地面设备监控中,需要将大量实时数据实时地存进数据库并提供实时查询。针对实时数据和Judy array数字树的特点,提出了一种基于内存映射文件的位图分配法,然后设计了一种哈希表、B+树和Judy array混合索引机制。通过大量记录的插入和查询,结果表明位图分配法能避免大量不可利用的内存碎片的产生,结合内存位图分配法的混合索引机制也为应用程序提供了实时的索引插入和查询。

关键词: 实时数据库, 位图分配法, 内存文件映射, 哈希表, B+树, Judy array

Abstract: It is necessary to store massive real-time data into database and query records from database in real-time on the field of satellite ground device monitoring. Taking account of the characteristics of real-time data and Judy array, a bitmap memory allocation method based on memory map file was proposed. A hybrid index mechanism which employed Hash table, B+ tree and Judy array was designed. Through insertion and querying of massive records, the experimental results show that bitmap allocation method avoids the generation of massive tiny memory holes. Being combined with bitmap allocation method, the hybrid index mechanism provides real-time index insertion and record querying for applications.

Key words: real-time database, bitmap allocation method, memory map file, Hash table, B+ tree, Judy array

中图分类号: