数据库驱动应用程序的等价性
Verifying Equivalence of Database-Driven Applications
摘要:
本文讨论的问题,验证一对程序之间的等价性,操作数据库与不同的模式。这个问题在Web应用程序的上下文中尤其重要,因为Web应用程序通常会出于性能或可维护性的原因进行数据库重构。虽然Web应用程序在模式迁移之前和之后应该具有相同的外部可观察行为,但没有现有的工具可以证明这些程序的等效性。本文采取了第一步解决这个问题的形式化的等价性和细化检查问题的数据库驱动的应用程序。我们还提出了一个证明方法的基础上的概念的互模拟不变量的关系代数更新,并描述了一种技术,用于合成这种互模拟不变量。我们已经实现了所提出的技术,在一个名为中介的工具,用于验证我们的中间语言编写的数据库驱动的应用程序之间的等价性,并评估我们的工具从教科书和现实世界的Web应用程序中提取的21个基准。我们的研究结果表明,所提出的方法可以成功地验证这些基准中的20个。
英文摘要:
This paper addresses the problem of verifying equivalence between a pair of programs that operate over databases with different schemas. This problem is particularly important in the context of web applications, which typically undergo database refactoring either for performance or maintainability reasons. While web applications should have the same externally observable behavior before and after schema migration, there are no existing tools for proving equivalence of such programs. This paper takes a first step towards solving this problem by formalizing the equivalence and refinement checking problems for database-driven applications. We also propose a proof methodology based on the notion of bisimulation invariants over relational algebra with updates and describe a technique for synthesizing such bisimulation invariants. We have implemented the proposed technique in a tool called Mediator for verifying equivalence between database-driven applications written in our intermediate language and evaluate our tool on 21 benchmarks extracted from textbooks and real-world web applications. Our results show that the proposed methodology can successfully verify 20 of these benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。