Based on the red-black tree indexing mechanism embedded SQLite database optimization program

Author
BiPan
Advisor
LiJianWei
School
Taiyuan University of Science and Technology
Major
Applied Computer Technology
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2012
Downloads
90
Citations
3

Request the full text

Abstract

With the popularity of embedded technology, embedded database hasbecome the new direction of development of database technology, it is alsowidely applied to the production and living. The SQLite database is a moremainstream product on the market. SQLite is an open source, embeddeddatabase, uses B-tree storage structure. The structure cannot meet the usersrequirement due to the increasing amount of data, an appropriate indexingmechanism becames an important aspect of the embedded database system.Based on the analysis of SQLite’s system structure, working principle andindex system,this paper compare some indexing mechanism used currently,research indexing technology of embedded database and the correspondingquery processing. In order to solve the problem of B-tree inefficient processinglarge data, a scheme of the B-tree substituted by red-black tree is presented.Firstly, the paper discuss the embedded system and related technology ofembedded database in-depth, analysis system structure and indexing mechanismof a typical embedded database SQLite, focusing on the operation performanceof B-tree.Secondly, the paper research and analysis structure and performance of thered-black tree, compare red-black tree with B-tree and AVL tree. A red-blacktree is self-balancing binary search tree, each of its nodes have been"coloring"black or red, These colors node are used to detect the tree balance. Becausered-black tree only requires partially balance, it reduces the requirements ofrotation, improving the operation performance.Again, based on the above research, the paper build the SQLite databasemodel which based on the red-black tree structure. Query, insert and deleteoperations realization with C language.Finally, compare SQLite database model based on the red-black treestructure with SQLite database model based on B tree structure by a lot ofexperiments. The results final test red-black tree as an indexing mechanism ofembedded database can achieved better performance. For SQLite database, using the red-black tree can achieve the optimiz of the index mechanism.

Related dissertations

  1. Research and Application of Information Retrieval Based on XML Document
    HuZuoZuo ·Shandong University ·2013 ·Master's thesis
  2. The Research and Design of Access Control Technology Based on SQLite
  3. Design of Intelligent Granary Monitoring Client on Android Based on SQLite Database
    LiuYang ·Anhui University ·2014 ·Master's thesis
  4. The Maintenance of Equipment Management System Based on Android Platform Design and Implementation
  5. Design and Implementation of Phone Assistant Based on the Android Platform
    ZhangZuo ·Dalian University of Technology ·2013 ·Master's thesis
  6. Implementation and Design of Mobile Terminal of OA System in University
    ZhengZuo ·Chinese Geology University (Beijing) ·2013 ·Master's thesis
  7. Research on Performance Optimization of De-duplication System
  8. Research and Implementation of Embedded HD Digital STB Software System
    HuangYouMing ·Huaqiao University ·2013 ·Master's thesis
  9. Research and Design of Embedded Smart Home Server Based on Linux
  10. The Research and Design of the Search System of Mobilephone Based on Android Platform
    ZhangHaiJiang ·Zhejiang Normal University ·2013 ·Master's thesis
  11. Quick Failure Data Retrieval System of Unmanned Aeral Vehicle
  12. The Crane Remote Monitoring System Based on Embedded Linux Research
    SunZuo ·Tianjin University of Technology ·2013 ·Master's thesis
  13. Research and Applications of Web Server Based on Embedded Linux and Sqlite
    ShiZhongHua ·Nanchang University ·2012 ·Master's thesis
  14. Researchand Design of Home Gateway Platform for Smart Home
    ZhuZiQin ·Zhejiang University of Technology ·2012 ·Master's thesis
  15. Development of Intelligent Embedded Video Surveillance Alarm System Based on B/S Model
    ShaoWenTao ·Northeastern University ·2010 ·Master's thesis
  16. The Study and Optimization of RTDB Index Structure Based on the Red-Black Tree Balance Mechanism
    LiJuan ·Chengdu University of Technology ·2012 ·Master's thesis
  17. Design and Implementation of Management System for Face Recognition Terminals
  18. Design and Implementation of Client Property Management System Based on Android Platform
  19. Research&Improvement of Processing Massive Log Data’s Model Based on Hadoop
    CaoXu ·Zhejiang Sci-Tech University ·2013 ·Master's thesis
  20. Research and Implementation of Bulimia Fish Game Based on Android Smartphonea