首页 | 本学科首页   官方微博 | 高级检索  
     

嵌入式数据库SQLite上多版本并发控制的设计与实现
引用本文:景子奇,邹兆年. 嵌入式数据库SQLite上多版本并发控制的设计与实现[J]. 计算机应用, 2022, 42(1): 140-147. DOI: 10.11772/j.issn.1001-9081.2021071217
作者姓名:景子奇  邹兆年
作者单位:哈尔滨工业大学 计算机科学与技术学院,哈尔滨 150001
基金项目:国家自然科学基金资助项目(62072138)。
摘    要:针对嵌入式数据库SQLite并发性能较低的问题,提出了一种基于多版本并发控制(MVCC)的并发控制设计.首先,设计了SQLite数据库的以提交的写事务为依据的版本划分方式,重新设计了数据记录的头部字段并以此划分了记录在不同版本访问下的可见性;然后,在SQLite原有结构基础上修改了增、删、查、改等操作与索引结构使得该数...

关 键 词:嵌入式数据库SQLite  事务管理  调度  多版本并发控制  并发执行
收稿时间:2021-07-14
修稿时间:2021-10-09

Design and implementation of multi-version concurrency control on embedded database SQLite
JING Ziqi,ZOU Zhaonian. Design and implementation of multi-version concurrency control on embedded database SQLite[J]. Journal of Computer Applications, 2022, 42(1): 140-147. DOI: 10.11772/j.issn.1001-9081.2021071217
Authors:JING Ziqi  ZOU Zhaonian
Affiliation:School of Computer Science and Technology,Harbin Institute of Technology,Harbin Heilongjiang 150001,China
Abstract:In order to solve the problem of low concurrency performance of embedded database SQLite, a concurrency control design based on Multi-Version Concurrency Control (MVCC) was proposed. Firstly, the version division method of SQLite database based on committed write transactions was designed, and the header field of data records was redesigned to divide the visibility of records under different version accesses. Then, based on the original structure of SQLite, the operations such as add, delete, check and change and the index structure were modified to make the database work under MVCC. Finally, a manual recycling mechanism was provided to handle old version data. Experiments were designed to compare and test the performance difference between SQLite-MVCC database obtained by the above design and SQLite database. It can be seen that in the state of high concurrency, SQLite-MVCC database can complete 70% more transactions in the same time. Experimental results verify that the proposed design can effectively improve the concurrency performance of SQLite, to meet the needs in concurrent case.
Keywords:embedded database SQLite  transaction management  scheduling  Multi-Version Concurrency Control(MVCC)  concurrent execution
本文献已被 维普 万方数据 等数据库收录!
点击此处可从《计算机应用》浏览原始摘要信息
点击此处可从《计算机应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号