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

基于红黑树的SQLite索引机制的优化方案的研究
引用本文:毕攀,李建伟.基于红黑树的SQLite索引机制的优化方案的研究[J].电脑开发与应用,2012,25(2):15-17.
作者姓名:毕攀  李建伟
作者单位:太原科技大学计算机科学与技术学院,太原,030024
摘    要:SQLite是开放码源的嵌入式关系数据库,它采用的是B树存储结构。针对B树处理庞大数据时效率低的问题,提出了一种用红黑树代替B树的数据库索引机制的优化方案。总结了红黑树处理数据时的优点,构建了基于红黑树的SQLite数据库模型。通过大量实验比较了红黑树和B树的性能,结果表明,红黑树插入和删除的操作效率远远高于B树,可以实现对SQLite索引的优化。

关 键 词:SQLite  红黑树  B树  存储结构

Optimization study of Indexing Mechanism of SQLite Based on Red-Black Tree
BI Pan , LI Jian-wei.Optimization study of Indexing Mechanism of SQLite Based on Red-Black Tree[J].Computer Development & Applications,2012,25(2):15-17.
Authors:BI Pan  LI Jian-wei
Affiliation:(School of Computer Science and Technology, Taiyuan University of Science and Technology, Taiyuan 030024, China)
Abstract:SQLite is an open source,embedded database,It uses B-tree storage structure. In order to solve the problem of B-tree inefficient processing large data, a scheme of the B-tree substituted by Red-Black tree is presented. This paper summarizes the advantage of Red-Black tree and builds a model of SQLite database based on Red-Black tree. According to the experiment,we know that insert and delete operations of Red-black tree is for more efficient than B-tree and to achieve optimal SQLite.
Keywords:SQLite  red-black tree  B-tree  storage structure
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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