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
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
- Research and Application of Information Retrieval Based on XML Document
- The Research and Design of Access Control Technology Based on SQLite
- Design of Intelligent Granary Monitoring Client on Android Based on SQLite Database
- The Maintenance of Equipment Management System Based on Android Platform Design and Implementation
- Design and Implementation of Phone Assistant Based on the Android Platform
- Implementation and Design of Mobile Terminal of OA System in University
- Research on Performance Optimization of De-duplication System
- Research and Implementation of Embedded HD Digital STB Software System
- Research and Design of Embedded Smart Home Server Based on Linux
- The Research and Design of the Search System of Mobilephone Based on Android Platform
- Quick Failure Data Retrieval System of Unmanned Aeral Vehicle
- The Crane Remote Monitoring System Based on Embedded Linux Research
- Research and Applications of Web Server Based on Embedded Linux and Sqlite
- Researchand Design of Home Gateway Platform for Smart Home
- Development of Intelligent Embedded Video Surveillance Alarm System Based on B/S Model
- The Study and Optimization of RTDB Index Structure Based on the Red-Black Tree Balance Mechanism
- Design and Implementation of Management System for Face Recognition Terminals
- Design and Implementation of Client Property Management System Based on Android Platform
- Research&Improvement of Processing Massive Log Data’s Model Based on Hadoop
- Research and Implementation of Bulimia Fish Game Based on Android Smartphonea