Embedded database indexing mechanism and Implementation

Author
ShengXiaoLiang
Advisor
ZhangFengLi
School
University of Electronic Science and Technology
Major
Applied Computer Technology
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2007
Downloads
430
Citations
3

Request the full text

Abstract

With the gradual maturity of 3G technology and research and development of B3G technology, Wireless transmission capacity is growing. Users can use smartphone, PDA and other mobile equipments to connect to the network through wireless technology. They can use mobile devices to access network resources at any time. People use embedded database to manage the information in many embedded device. But in embedded systems, the storage capacity is very limited. There is a focus research topic that how to make the best use of limited storage and improve the utilization of storage space in the embedded database.Currently, the most embedded database systems use B+ tree indexing mechanism. It has advantage of high efficiency and being able to process operations on the records of B+ trees randomly and sequentially. It can maintain the dynamic balance of the tree. However, the B+ tree indexing mechanism has a fatal disadvantage for wasting storage space capacity in the embedded systems. The statistic shows that B+ tree indexing mechanism guarantee only about 50% storage utilization.When one node is split, the database system use an additional "overflow page" to store the overflow keyword, this can defer the node split and improve the utilization of storage space, it is the ideas of overflow technology. Research shows that the store space utilization of overflow technology has more 20% to 30% than B+tree indexing mechanism.The main task of this dissertation is to study and achieve an indexing mechanism in the embedded database system. It has higher utilization than B+ tree indexing mechanism. At first, The dissertation introduces some classic indexing mechanism in the embedded database and analyses their advantages and disadvantages. Then analyses the ideas of B+ tree indexing mechanism and their advantages and disadvantages. The dissertation uses a combination of B+ tree indexing mechanism and overflow technology to come at an improved indexing mechanism--B# tree indexing mechanism, then program to achieve the B# tree indexing mechanism and replace the B+ tree indexing mechanism in the open-source embedded database SQLite. At last, put SQLite to the development board of MAGICARM2410 of Zhi Yuan ltd. in Guangzhou after repeating test the system, then build the platform and program with tcl script language. Under the same conditions and time, the dissertation tests SQLite with B+ tree and B# tree indexing mechanism respectively and analyses the reasons for the disparity in the test results, the experimental results show that the B# tree algorithm can attain higher storage utilization at the expense of a little more execution time than B+ tree algorithm, even inserted in a little record, it consumes considerable time with the B+ tree indexing mechanism, but its store space utilization even come to 76%. The result has some advantages for making the best use of the limited storage space for equipment in the embedded database system which request for a little real-time performance, such as intelligent mobile phones use embedded database system to manage users’ information.

Table of contents

Abstract 4-5 ABSTRACT 5-7 directory 7-10 chart catalog 10-12 abbreviations 12-13 Chapter 1 Preface 13-16 1.1 Background and Significance 13-14 1.2 research status 14 1.3 main job 14-15 1.4 Summary 15-16 Chapter embedded database background 16-40 2.1 embedded database Overview 16-21 2.1.1 Embedded database definition 16 2.1.2 Embedded Database Features 16-17 2.1.3 Embedded Database Research 17-20 2.1.4 embedded database applications 20-21 2.2 major domestic and embedded database products 21-28 2.2.1 Foreign embedded database system introduced 22-26 2.2.2 Domestic embedded database system introduced 26-28 2.3 embedded database index describes 28-39 2.3.1 Linear hashing method 28-30 2.3.2 ISAM tree 30-33 2.3.3 B tree 33-36 2.3.4 R tree 36-39 2.4 Summary 39-40 Chapter indexing mechanism improvements 40-53 3.1 B -tree index mechanism 40-44 3.1.1 B tree definition 40-41 3.1.2 B tree search 41 3.1.3 B tree insertion 41-42 3.1.4 B tree removal 42-44 3.2 overflow technology 44-45 3.2.1 overflow technology 44-45 3.3 B -tree index mechanism to improve 45-52 3.3.1 B # tree definition 47 3.3.2 B # tree lookup 47 3.3.3 B # tree insertion 47-50 3.3.4 B # tree removal 50-52 3.4 Summary 52-53 Chapter B # tree indexing mechanism 53-63 4.1 embedded database SQLITE index describes 53-54 4.2 B # tree node design 54-58 4.3 B # tree search algorithm design 58-59 4.4 B # tree insertion algorithm design 59-61 4.5 B # tree deletion algorithm design 61-62 4.6 Summary 62-63 Chapter Test System Environmental Design 63-76 5.1 LINUX embedded hardware platforms 63 5.2 U-BOOT transplant 63-67 5.2.1 U-boot introduction 64-65 5.2.2 BootLoader startup process 65 5.2.3 U-boot configuration parameters 65-66 5.2.4 build development board documents 66-67 5.3 LINUX cutting and transplantation 67-71 5.3.1 configure and compile the kernel 67-69 5.3.2 File System 69-71 5.4 SQLITE transplant 71-75 5.4.1 cross compiler chain 72 5.4.2 configurations gcc 72-73 5.4.3 compilation process 73-74 5.4.4 SQLite test 74-75 5.5 Summary 75-76 Chapter VI Performance Test 76-84 6.1 test platform 76-77 6.2 hours using the test results and analysis 77-80 6.2.1 experiment 77-78 6.2.2 Experiment II 78-79 6.2.3 Experiment III 79-80 6.3 space utilization test results and analysis 80-83 6.3.1 Experiment IV 81 6.3.2 Experimental five 81-82 6.3.3 experimental results 82-83 6.4 Summary 83-84 Chapter VII Conclusion 84-86 7.1 Work Summary 84 7.2 Prospects 84-86 Thanks 86-87 References 87-90 Author academic achievements gained during the attack Shuo 90

Related dissertations

  1. The Research on Access Method Based on Embedded Database
    LiuCaiPing ·Hunan University ·2004 ·Master's thesis
  2. The Research on IP Address Lookup and Packet Classification Algorithm
    XiongShuai ·Hunan University ·2013 ·Master's thesis
  3. The Design and Implementation of Police Corps Command Cooperation System
    WuLinMing ·Tianjin University ·2012 ·Master's thesis
  4. The Design of Cinema Ticketing System by Mobile Terminal on Android
    QiuJunJu ·South China University of Technology ·2013 ·Master's thesis
  5. The Application of the Optimal Dynamic Path Mechanism on Network Storage
  6. Design of Agricultural Products Logistics Information Collecting System Based on WinCE and SQLite3
    GuYanTao ·Gansu Agricultural University ·2012 ·Master's thesis
  7. Research on Dynamic Hierarchical P2P System Based on Super-node and B+Tree
    GongBin ·Hunan University ·2011 ·Master's thesis
  8. Research on a Dynamic Management for Spatial Vector Data Based on P2P Network
  9. Research and Inclement at ion of an Index System of Massive Image Data based on Cloud Computing Platform
  10. Research and Design of Embedded Database System Engine Based on Mixed Data Models
  11. Application of Embedded Database Berkeley DB in AUV Data Management
    QiDanDan ·Ocean University of China ·2012 ·Master's thesis
  12. The Research of Some Key Techniques of Vehicle Database
    ZengLiNing ·Hunan University ·2011 ·Master's thesis
  13. The Research Based on Embedded Database and MiniGUI Information Query System
  14. Design and Application of Embedded Database on Vehicle Overspeed Detection System
    ZhangJing ·Hebei University of Technology ·2012 ·Master's thesis
  15. Research of Query Processing in Embedded Database
    ChenYanHong ·Xinjiang Agricultural University ·2012 ·Master's thesis
  16. Research of embedded database based on hybrid index dynamic hash
  17. Research and Application of Embedded Database
    MaJian ·Xinjiang Agricultural University ·2012 ·Master's thesis
  18. Embedded Database Research and Applications
  19. The Design and Implementation of Embedded Database Technology Based on Rtems
  20. The design and implementation of SMS platform terminal software
    SunRuiYi ·Fudan University ·2011 ·Master's thesis