Research and Improvement of the Index Mechanism of the Embedded Main Memory Database
- Author
- ChenJia
- Advisor
- LiuHong
- School
- Hunan Normal University
- Major
- Applied Computer Technology
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 175
- Citations
- 7
Abstract
Nowadays,embedded database system has been widely applied in all social areas as a kernal technology of mobile computation,information appliance and electronic commerce.It has many fuctions,for example, public information service,real_time data collection,position_related search and so on.Based on the mature database technology,the embedded database system implements the storage,operation and management of data in accordance with the special features of embedded devices.The transactions processed in the embedded database are usually real_time transactions and the correctness of transaction dispatch depends on the capacity of highly efficient process and predict.Because the input and output speed of disk is very low and the disk deferment is unpredict-able,main memory database technology is often used in the embedded database system.The efficiency of operation on database depends deeply on the index mechanism which the database adopts.Because limited storage space of main memory and low process capacity are the unique features of embedded system,the index mechanism which adapts to the embedded database should comsume storage space as little as possible and further promote the speed of data operation at the same time.The existing index mechanism of main memory database such as T-tree,T*-tree,T-tail tree,hybrid-TH,hash cannot meet the time and space demand of embedded system simultaneously,so it appears important to work out a new index mechanism that has better time and space performance.Based on the traditional hybrid index mechanism-hybrid-TH,a new mechanism in accordance with the special features of embedded database is brought up by this paper.The new mechanism called H-T*-tail not only has the advantage of using little storage space but also promotes the speed of search and modification in no small measure.This thesis firstly introduces the embedded database and the main memory database technology in totality.It then elaborates in detail the algorithms of basic operations on traditional index mechanism, including T-tree,T*-tree,T-tail tree and hybrid-TH.Afterwards,it analyzes the time and space properties of hybrid-TH mechanism in the theoretical degree and points out the drawbacks of it.Next it focuses on discussing the new index mechanism-H-T*-tail and the new tree structure adopted by H-T*-tail-T*-tail.It then analyzes the time and space performance of the new index mechanism in the theoretical level.Lastly,it has verified the excellent time and space performance of H-T*-tail through a series ofexperiments which make comparisions between the two hybrid index mechanism-hybrid-TH and H-T*-tail.The new index mechanism has subsequent characteristics: -$■ Each element is stored only once,so reduces the consumption ofstorage space;?$■ The elements which have the same hash address are arranged in a T*-tail atom tree;4" Scatters all elements to many atom trees through hash table and dataoperations are carreded out on atom trees,so has shrinked the scope ofoperation;■^ Has shifted the burden of search from hash table to T*-tail atom treesand adopts the improved search algorithm,so has improved the searchperformance;"$■ When the internal nodes in T*-tail atom trees have underflowed afterbeing taken element away,it is decided by its balance factor thatwhich node to move element from,precursor or successor.This stategyhas greatly decreased the times of rotation that is needed to keepbalance;■$? Hash table doesn’t store keys of records actually,it only has thefunction of locating the position of the corresponding atom tree;■$■ Don’t need to set up the relationship between the hash structure andthe tree structure,so has saved the expenses on preserving andpromoted the performance of modification.
Table of contents
Chinese Abstract 3-5
Abstract 5-10
first chapter an overview of embedded main memory database 10-24
1.1 Embedded Overview of database 10-15
1.1.1 embedded database definition 10
1.1.2 embedded database features 10-12
1.1.3 embedded database applications 12-13
1.1.4 major domestic and embedded database products 13-15
1.1.4.1 international mainstream products 13-14
1.1.4.2 domestic mainstream products 14-15
1.2 main memory database technology 15-20
1.2.1 embedded database using traditional data storage technology 15
1.2.2 database based on two main memory implementation strategy 15-17
1.2.3 memory constrained memory database data access strategy 17-18
1.2.3.1 memory constrained memory database definition 17
1.2.3.2 memory constrained memory database data loading strategy 17 -18
1.2.4 main memory database features 18-20
1.3 adapted to the embedded main memory database indexing mechanism 20-21
1.4 of this article research 21-22
1.5 paper structure 22-24
Chapter traditional indexing mechanism 24-64
2.1 types of traditional indexing mechanism 24
2.2 indexing mechanism the research background and research status 24-27
2.3 Introduction and traditional indexing mechanism analysis 27-62
2.3. a hash index mechanism 27-29
2.3.1.1 hash indexing mechanism related concepts 27
2.3.1.2 Introduction of several hash index mechanism 27-29
2.3.2 balanced binary tree (AVL tree ) indexing mechanism 29-37
2.3.2.1 AVL tree definition 29
2.3.2.2 AVL tree on the basic operation 29-36
2.3.2.3 AVL tree summary 36-37
2.3.3 T -tree index mechanism 37-49
2.3.3.1 T tree definition 37-39
2.3.3.2 T tree basic operation 39-49
2.3.4 T ~ * tree index mechanism 49-52
2.3.4.1 T ~ * tree is defined 49-50
2.3.4.2 T ~ * tree basic operation 50-52
2.3.4.3 T ~ * tree advantages 52
2.3.5 T-tail tree indexing mechanism 52-62
2.3.5.1 T-tail tree definition 52-54
2.3.5.2 T-tail tree basic operation 54-62
2.3.5.3 T-tail tree advantages 62
2.4 Summary 62-64
Chapter III Hybrid-TH indexing mechanism 64-78
3.1 Hybrid-TH index structure is defined 64-66
3.2 Hybrid-TH indexing mechanism on the basic operation of 66-74
3.2.1 simple query operations 66
3.2.2 range query 66-67 <br / > 3.2.3 insert 67-70
3.2.4 delete 70-74
3.3 Hybrid-TH indexing mechanism shortcomings 74-76 < br /> 3.4 Summary 76-78
Chapter 4 New indexing mechanism - HT ~ *-tail 78-104
4.1 HT ~ *-tail index structure is defined 78-79
4.2 T ~ *-tail tree 79-90
4.2.1 T ~ *-tail tree definition 80-81 <br / > 4.2.2 T ~ *-tail tree basic operation 81-90
4.2.3 T ~ *-tail tree advantages 90
4.3 HT ~ * - tail indexing mechanism on the basic operation of 90-96
4.3.1 simple query operations 90-91
4.3.2 range query 91-92 <br / > 4.3.3 insert 92-94
4.3.4 delete 94-96
4.4 HT ~ *-tail indexing mechanism for performance analysis 96 -103
4.4.1 evenly case HT ~ *-tail indexing mechanism for performance analysis 96-101
4.4.1.1 HT ~ *-tail indexing mechanism of space usage analysis 96-97
4.4.1.2 HT ~ *-tail indexing mechanism query performance analysis 97-99
4.4.1.3 HT ~ *-tail range query performance indexing mechanism analysis 99-100
4.4.1.4 HT ~ *-tail indexing mechanism of insertion performance analysis 100
4.4.1.5 HT ~ *-tail indexing mechanism to delete performance analysis 100-101
4.4.2 worst case HT ~ *-tail indexing mechanism for performance analysis 101-103
4.4.2.1 HT ~ *-tail indexing mechanism space consumption analysis 101
4.4.2.2 HT ~ *-tail indexing mechanism of the time consumption analysis 101-103
4.5 Summary 103-104 < br /> CHAPTER performance test results and evaluation 104-118
5.1 test platform 104
5.2 test Description 104-105
5.3 test results and Performance Analysis 105-117
5.3.1 evenly distributed performance test case 105-112
5.3.1.1 evenly space the performance test case 105-106
5.3.1.2 evenly case time performance testing 106-112
5.3.2 worst-case performance test 112-117 <br / > 5.3.2.1 worst-case performance of the test space 112-113
5.3.2.2 worst-case time performance testing 113-117
5.4 Summary 117-118
Conclusion 118-120
References 120-124
Thanks 124-126
appendix a master's period papers published 126-128
Appendix II Hunan Normal University dissertation original statement 128
Hunan Normal University dissertation copyright attorney 128
Related dissertations
- Research and Application of Information Retrieval Based on XML Document
- The Design and Implementation of Police Corps Command Cooperation System
- The Design of Cinema Ticketing System by Mobile Terminal on Android
- Research on Performance Optimization of De-duplication System
- Design of Agricultural Products Logistics Information Collecting System Based on WinCE and SQLite3
- Research and Design of Embedded Database System Engine Based on Mixed Data Models
- Application of Embedded Database Berkeley DB in AUV Data Management
- Applied Research of Main Memory Database System in Hunan Business Operation Support System
- The Research of Some Key Techniques of Vehicle Database
- The Research Based on Embedded Database and MiniGUI Information Query System
- Design and Application of Embedded Database on Vehicle Overspeed Detection System
- Research of Query Processing in Embedded Database
- Research of embedded database based on hybrid index dynamic hash
- Research and Application of Embedded Database
- Embedded Database Research and Applications
- Based on the red-black tree indexing mechanism embedded SQLite database optimization program
- The Design and Implementation of Embedded Database Technology Based on Rtems
- The design and implementation of SMS platform terminal software
- The Design and Implementation of Coal Mining Safety Monitoring and Management System Based on Embedded Database
- Research on Recovery Mechanisms in DM Embedded DBMS