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

基于数据库事务的不变式推导
引用本文:曾虹驰,彭鑫,赵文耘.基于数据库事务的不变式推导[J].计算机科学,2017,44(11):91-97.
作者姓名:曾虹驰  彭鑫  赵文耘
作者单位:复旦大学软件学院 上海201203,复旦大学软件学院 上海201203;复旦大学上海市数据科学重点实验室 上海201203,复旦大学软件学院 上海201203;复旦大学上海市数据科学重点实验室 上海201203
基金项目:本文受国家自然科学基金(61370079)资助
摘    要:作为数据处理和并发控制的基本单位,数据库事务被广泛应用于软件系统的业务逻辑中。通过收集运行时数据库事务中的数据,推导这些数据之间满足的不变式,建立相应的数据契约关系,是软件维护过程中对系统的内部状态进行监控的重要方法之一。目前,在不变式推导领域,主要的方法和工具都是基于代码进行分析的,缺少与基于数据分析相关的研究和成果。为了解决这一问题,首先提出了基于数据的推导代数等式形式的不变式的算法,然后设计并实现了基于数据库事务的不变式推导的原型工具,最后通过相关实验分析和验证了原型工具的有效性。实验结果表明,原型工具有良好的推导准确率和运行性能,能够弥补现有工具和方法在基于数据的分析领域的不足。

关 键 词:数据库事务  不变式推导  代数等式
收稿时间:2016/10/3 0:00:00
修稿时间:2016/12/18 0:00:00

Deriving Invariants from Database Transactions
ZENG Hong-chi,PENG Xin and ZHAO Wen-yun.Deriving Invariants from Database Transactions[J].Computer Science,2017,44(11):91-97.
Authors:ZENG Hong-chi  PENG Xin and ZHAO Wen-yun
Affiliation:Software School,Fudan University,Shanghai 201203,China,Software School,Fudan University,Shanghai 201203,China;Shanghai Key Laboratory of Data Science,Fudan University,Shanghai 201203,China and Software School,Fudan University,Shanghai 201203,China;Shanghai Key Laboratory of Data Science,Fudan University,Shanghai 201203,China
Abstract:As the basic unit of data processing and concurrency control,database transaction is widely used in business logic of software applications.It is a significant method in software maintenance for monitoring internal state to derive invariants and establish corresponding data contracts based on data collected from database transactions at runtime.Currently,in the field of invariant derivation,most researches and tools are just based on deriving invariants from source code, while there is lack of researches on deriving invariants from data.To solve this problem,this paper firstly introduced an algorithm for deriving invariants in the form of algebraic equations.Moreover,a prototyping tool was designed and implemented to collect data from database transactions at runtime and derive invariants among these data.With experiments,the prototyping tool is proved to be effective both on accuracy and performance,which fills the gap of inva-riants derivation based on data.
Keywords:Database transaction  Invariant derivation  Algebraic equation
点击此处可从《计算机科学》浏览原始摘要信息
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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