首页> 外文会议>International Conference on Advanced Communication Technology >Atomic multi-database transaction of WAL joumaling mode in SQLite
【24h】

Atomic multi-database transaction of WAL joumaling mode in SQLite

机译:SQLite中WAL joumaling模式的原子多数据库事务

获取原文

摘要

This works is to propose a solution for multi-database atomicity problem of WAL journaling mode in SQLite. SQLite is the most widely deployed and used DBMS in mobile system [1]. SQLite has several journaling modes. WAL (Write-Ahead Logging) is the one of those journaling modes included from version 3.7.0. WAL is significantly faster in most scenarios and provides more concurrency as reading and writing can proceed concurrently. However, transactions that involve changes with multiple attached databases do not guarantee atomicity across all databases as a set [2]. We modify transaction and recovery procedure of WAL to solve this problem. This work consists of three parts: (i) Enabling Use of Master Journal for WAL. (ii) Creation of `mj-stored' File in Multi-Database Transaction. (iii) Rollback with `mj-stored' File. In multi-database transaction, we create `mj-stored' file for each WAL file to save the state before the transaction begins and the master journal file name. If crash occurs during the transaction, database with WAL journaling mode try to find the `mj-stored' file and corresponding master journal file to roll back to the state before the transaction began in recovery time. With this solution, multi-database transaction with WAL journaling mode can guarantee atomicity.
机译:这项工作旨在为SQLite中的WAL日记模式的多数据库原子性问题提出解决方案。 SQLite是移动系统中使用最广泛的DBMS [1]。 SQLite有几种日志记录模式。 WAL(预写日志记录)是版本3.7.0中包含的那些日志记录模式之一。在大多数情况下,WAL的速度明显更快,并且由于可以同时进行读写,因此提供了更多的并发性。但是,涉及多个附加数据库的更改的事务不能保证所有数据库作为一个集合都具有原子性[2]。我们修改了WAL的交易和恢复程序来解决此问题。这项工作包括三个部分:(i)启用将母版日记用于WAL。 (ii)在多数据库交易中创建“ mj存储”文件。 (iii)使用“ mj-stored”文件回滚。在多数据库事务中,我们为每个WAL文件创建一个“ mj-stored”文件,以保存事务开始之前的状态和主日志文件名。如果在事务处理期间发生崩溃,则具有WAL日志记录模式的数据库将尝试查找“ mj-stored”文件和相应的主日志文件,以回滚到恢复时间开始事务处理之前的状态。使用此解决方案,具有WAL日记模式的多数据库事务可以保证原子性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号