基于動(dòng)態(tài)散列的嵌入式數(shù)據(jù)庫混合索引的研究
[Abstract]:With the development of embedded technology and electronic technology, the performance of the key components of embedded system, such as microprocessor and flash memory, is constantly improving, and its price is gradually decreasing. This allows embedded devices to handle more complex tasks at a lower cost. However, simple file data management has been unable to meet the data management requirements of the embedded system with the core task of data processing, so the embedded database system emerges as the times require. In this paper, the open source database SQLite is regarded as an example object of embedded database research. From the aspect of hybrid indexing mechanism, an efficient hybrid indexing mechanism is proposed, which combines the characteristics of dynamic hash and tree indexing. Simulation experiments are carried out to verify the efficiency of the hybrid indexing mechanism in retrieval and insertion operations. In the research work, firstly, the architecture and index organization mode of SQLite are analyzed, and the typical dynamic hash, tree index mechanism and mixed index mechanism structure and related operation algorithm are studied. On the basis of combining the characteristics of T-tree and red-black tree algorithm, a non-strictly balanced tree structure, TC tree, is proposed. The tree indexing mechanism can solve the problem that the operation performance of the T-tree is degraded by the frequent adjustment operation caused by the strict balance conditions. In addition, according to the characteristics of linear hash and extensible hash directory expansion algorithm, an incremental dynamic hash algorithm, IDH, which extends only one directory unit per split, is proposed in this paper. The number of directory extensions in this dynamic hash is dependent on the location of the overflow bucket and the overflow bucket can split in time. In addition, combining the IDH for bucket location with the TC tree for organizing data in the bucket forms a new hybrid indexing mechanism-IDH-TC.. The experimental results show that the hybrid indexing mechanism is efficient in data retrieval and insertion under random data conditions. The time complexity of the retrieval operation is almost O (1), while the performance of the insert operation is affected by the storage utilization. For the TC tree, when the node capacity has the best effect on the operation performance, the insertion operation performance of the tree is obviously better than that of the T-tree, and the retrieval and deletion performance of the tree is the same as that of the T-tree. Linear hash, scalable hash and incremental dynamic hash adopt bucket overflow splitting mode compared with storage utilization split mode, with the increase of data volume, directory growth speed is faster, and the number of overflow buckets is smaller. Storage utilization is low. When the storage utilization ratio is used as the splitting condition, the growth of the three kinds of data skewness distributions to the linear hash is the same as that of the scalable hash. In the case of bucket overflow, for linear hash, the more backend the data distribution, the slower the directory growth. For scalable hashes, the directory growth rate when the number is distributed at the front end and the back end is similar and significantly faster than the directory growth rate when the data is distributed at the middle end. For incremental dynamic hashing, the more data is distributed back-end, the faster the directory grows. To sum up, the hybrid indexing mechanism IDH-TC proposed in this paper is an efficient index mechanism for embedded database. If it is applied to embedded database, it can improve the performance of retrieval, insert and so on.
【學(xué)位授予單位】:太原科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2013
【分類號(hào)】:TP368.1;TP311.13
【參考文獻(xiàn)】
相關(guān)期刊論文 前7條
1 唐敏;宋杰;;嵌入式數(shù)據(jù)庫SQLite的原理與應(yīng)用[J];電腦知識(shí)與技術(shù);2008年04期
2 陳強(qiáng)璋;一種高效的二叉查找樹——紅黑樹[J];華東師范大學(xué)學(xué)報(bào)(自然科學(xué)版);2000年03期
3 林鵬,李航,徐學(xué)洲;關(guān)鍵業(yè)務(wù)中內(nèi)存數(shù)據(jù)庫的T樹索引優(yōu)化[J];計(jì)算機(jī)工程;2004年17期
4 夏家莉;H-T:一種適用于嵌入式數(shù)據(jù)庫系統(tǒng)的存取機(jī)制[J];計(jì)算機(jī)應(yīng)用與軟件;2003年06期
5 唐自立;;紅黑樹的高度[J];蘇州大學(xué)學(xué)報(bào)(自然科學(xué)版);2006年03期
6 陳嘉;朱文興;;一種適用于嵌入式數(shù)據(jù)庫的新索引機(jī)制[J];微計(jì)算機(jī)信息;2009年08期
7 黨玉春;翟秀云;陳明通;;SQLite系統(tǒng)構(gòu)架及虛擬機(jī)分析[J];微型機(jī)與應(yīng)用;2012年10期
相關(guān)碩士學(xué)位論文 前5條
1 李青;基于H-UT索引機(jī)制的嵌入式數(shù)據(jù)庫研究與實(shí)現(xiàn)[D];西安電子科技大學(xué);2009年
2 夏銘;嵌入式數(shù)據(jù)庫結(jié)構(gòu)及索引查詢技術(shù)研究[D];合肥工業(yè)大學(xué);2007年
3 史震宇;基于嵌入式數(shù)據(jù)庫SQLite的交通信息采集單元[D];天津大學(xué);2007年
4 梁巧玉;實(shí)時(shí)內(nèi)存數(shù)據(jù)庫數(shù)據(jù)組織結(jié)構(gòu)優(yōu)化策略研究[D];太原科技大學(xué);2010年
5 畢攀;基于紅黑樹的嵌入式數(shù)據(jù)庫SQLite索引機(jī)制的優(yōu)化方案的研究[D];太原科技大學(xué);2012年
本文編號(hào):2439358
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2439358.html