The Reformation of Database Decision Support Testing System and the Analysis of InnoDB Index
- Author
- NiuYiJie
- Advisor
- CuiWeiLi
- School
- Jilin University
- Major
- Computer System Architecture
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 104
- Citations
- 1
Abstract
With the extensive application of technique of computer in every trade,the data has already become precious resources for various organizations.The database management system becomes the important foundation coresoftware technique.Currently the general database product is placed basiclly in the blankcircumstance. The Decision Support Test System will be benefit to ahomemade database production. The system can be applied to design,develop, upgrade and recursively test the database production. The reading ofthe open source database source code contribute to understanding thetechnique of a database and provide the necessary technical support for thehomemade database.This paper is constitute by two parts, the first part mainly introduces thereformation that Database Decision Support Test System; the mainintroduction of the second part is to analyze the directory structure and sourcecode of index processor subsystem of the InnoDB module of open sourcedatabase MySQL5.0. These two parts works are all at for develop thedomestic database to do the technique preparation.The Decision Support Test System is a decision support benchmark. Itconsists of a suite of business oriented ad-hoc queries and concurrent datamodifications. This benchmark illustrates decision support systems thatexamine large volumes of data, execute queries with a high degree ofcomplexity, and give answers to critical business questions.The Decision Support Test System is the subsystem of RedPTS ( theRedBase Performance Testing System). The technique of it comes from theTPC-H and DBT3. The Transaction Processing Performance Council (TPC)Benchmark Specification H (TPC-HTM) is a decision support benchmark. TheOSDL Database Test 3 (OSDL-DBT-3) test kit is a simplified derivative ofthe TPC-H.In actual test process, the DBT3 has many problems.For example:TheDBT3 provides only an easy to use decision support workload of businessoriented ad-hoc queries to stress the Linux operating system for SAP DB andpostgres. But the decision support benchmark support two driver/SUTconfigurations, a “host-based”and a “client/server”configuration。Aim atthese weaknesses, the Database Decision Support Test System that carry outthem through reformating. We implement the test process for redbase andoracle on two driver/SUT configurations. The tested and reported configuration(s)of the Decision Support TestSystem is composed of a driver and a system under test (SUT).The driversubmits queries to SUT. The SUT executes these queries and replies to thedriver. The driver presents the workload to the SUT. The driver is a logicalentity that can be implemented using one or more programs, processes, orsystems and performs the functions. The host system(s) or server(s) includinghardware and software supporting access to the database employed in theperformance test. Ten members in our group spent half a year in analyzing theimplementation of InnoDB storage engine in MySQL 5.0 alpha Open Sourcedatabase. The MySQL software delivers a very fast, multi-threaded, multi-user,and robust SQL (Structured Query Language) database server. MySQLServer works in client/server MySQL, the most popular Open Source SQLdatabase management system, is developed, distributed, and supported byMySQL AB. The MySQL Server design is multi-layered with independentmodules. InnoDB is essentially a stand-alone database management system。InnoDB provides MySQL with a transaction-safe (ACID compliant) storageengine with commit, rollback, and crash recovery capabilities. InnoDB doeslocking on the row level and also provides an Oracle-style consistentnon-locking read in SELECT statements. These features increase multi-userconcurrency and performance. There is no need for lock escalation inInnoDB because row-level locks in InnoDB fit in very little space. InnoDBalso supports FOREIGN KEY constraints. The paper introduces the fuction and principle of InnoDB index inMySQL 5.0 alpha Open Source database. The index and storage managerinterrelate with each other. If you total up the sizes of the C files, you’ll see that \btr is thesecond-largest file group in InnoDB. This is understandable becausemaintaining a B-tree is a relatively complex task. Luckily, there has been a lotof work done to describe efficient management of B-tree and B+-treestructures.
Table of contents
The first part of the database evaluation decision support system transformation 8-33
Chapter 1 Introduction 9-11
1.1 Background 9-10
1.1 .1 database application type 9
1.1.2 TPC Profile 9-10
1.1.3 Introduction evaluation decision Support systems 10
1.2 This section work 10-11
Chapter 2 evaluation decision Support system Principles 11-17
2.1 evaluation decision Support system design ideas 11
2.2 decision support Testing system Simulation environment Design 11-14
2.3 decision Support system Implementation evaluation elements 14-17
2.3.1 evaluation System decision Support queries and update functions [ 14
2.3.2 evaluation decision Support system database size 14-15
2.3.3 decision Support assessment System test execution rules 15-17 <br / > Chapter 3 decision Support system assessment system reform through 17-25
3.1 evaluation decision Support system architecture design 17-19
3.1.1 driver sub-module design 18-19
3.1.2 system under test sub- module design 19
3.1.3 testing rules 19
3.2 decision support Testing system architecture to achieve 19-25
3.2.1 driver sub-module implementation 20-24
3.2.2 sub- module of the system under test 24 -25
Chapter 4 decision Support assessment System test transformation 25-28
4.1 loading data transformation 25-26
4.1.1 Redbase data loading 25
4.1.2 Oracle loading data transformation 25-26
4.2 modify evaluation script 26-28
4.2.1 test preparation script changes 26
4.2.2 performance test scripts to modify 26-28
Chapter 5 test procedures and results analysis 28-32
5.1 testing Process 28-30
5.1.1 creating test database 28
5.1.2 modify environment variables 28-29
5.1.3 creating test data Sheet 29
5.1.4 generate test data and load 29
5.1.5 creating an index 29
5.1.6 update data generation and load 29
5.1.7 backup Database 29-30
5.1.8 performance Test 30
5.2 evaluation results analysis 30-32
5.2.1 decision Support assessment System test structure calculation methods 30-31
5.2.2 test Results 31-32
Chapter 6 Conclusion 32-33
INNODB second part of the analysis of the index 33-72
Chapter 1 Introduction 34-36
1.1 background 34 - 35
1.2 research 35
1.3 This section work 35-36
INNODB Index Chapter 2 system Overview 36-38
2.1 INNODB index types 36
2.2 INNODB indexing work outlined 36-37
2.3 INNODB index structure 37-38
Chapter 3 stores management system indexes related concepts 38-41
3.1 INNODB index data dictionary objects 38
3.2 INNODB index of the physical storage 38
3.3 INNODB page physical structure 38-39
3.4 INNODB insert buffer 39-40
3.4.1 to establish the reasons for the insert buffer 39-40
3.4.2 insert buffer structure 40
3.5 index tree segment 40-41
Chapter 4 INNODB important structural index 41-47 <br / > 4.1 node pointer 41
4.2 index data structure 41-43
4.3 cursor 43-45
4.4 permanent cursor 45 -46
4.5 corresponding to the index data dictionary lookup structure 46-47
Chapter 5 INNODB important basis for the index operation 47-50
5.1 INNODB B tree locking strategy 47
5.2 Tallahassee index structure created 47
5.3 creating a basic process of the index object 47-48
5.4 INNODB page recorded in positioning methods 48
5.5 BLOB field storage ( external storage ) 48-50
Chapter 6 INNODB indexing system's main operational processes 50-71
6.1 INNODB search 50-56
6.1.1 InnoDB lookup type 50-51
6.1.2 binary search 51-53 < br /> 6.1.3 Tallahassee search 53-56
6.2 B tree insertion 56-60
6.2.1 big record processing sub-module 57 < br /> 6.2.2 split inode conditions 57-58
6.2.3 optimistic insert sub-module 58
6.2.4 pessimistic insert sub-module 58 -60
6.3 B tree update 60-63
6.3.1 optimistic update 61-62
6.3.2 pessimistic update 62 -63
6.4 B tree removal 63-65
6.4.1 optimistic deletion 64
6.4.2 pessimistic delete 64-65
6.5 B tree split 65-70
6.5.1 determine split points 65-68
6.5.2 tree structure adjustment 68 - 70
6.6 B tree compression 70-71
Chapter 7 Conclusion 71-72
References 72-74
Appendix 74-78
Summary 78-81
ABSTRACT 81-84
Thanks 84-85
instructor and author Introduction 85
Related dissertations
- Research on Fiscal Expenditure Performance Evaluation of Dongying City
- Study on the evaluation index system of audit of enterprise internal control in our country
- Research on Construction of Integrated Evaluation System of China Private Equity Fund Manager
- The Research Based on the Balanced Scorecard in the Performance Appraisal System of LM Company
- Research on Urban Public Transport Services Evaluation System
- The Designment on Fuel Management Department Performance Index of Ningxai Datang International Daba Power Generation CO., LTD
- Research and Design of Performance Appraisal System of Inner Mongolia a Fuel Company
- Research on the Risk Early-warning Management Mechanism of International Engineering Projects
- Evaluation of the level of integration of urban and rural logistics development in Shanxi
- Study on the Establishment and Verification for Hunan Food Safety Index
- Research on Intrusion Detection Technology Based on Mutual Information and KNN
- Research on Index Technology of String Approximate Query
- Design and Implementation of Full-text Retrieval System Based on Lucene
- The Establishment of Intelligent Search Engine Platform in Enterprise
- Three-Layout Key/Value Index System Base on JB~c-LSM
- Research on the Index and Queries of Moving Objects
- Research on Large-scale Unstructured Data Processing of Index and Visualization
- The Research of Data Warehouse Performance Optimization Technology Based on the Coupling Index and Materialized View
- Storing Large Scale Semi-structured and Unstructured Data on RDBMS
- Design and implementation of e-mail monitoring system based on Linux