arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1608.05564cs.DB
收藏

生活在并行现实中--模式版本与双向数据库演化语言共存

Living in Parallel Realities -- Co-Existing Schema Versions with a Bidirectional Database Evolution Language

Kai Herrmann, Hannes Voigt, Andreas Behrend, Jonas Rausch, Wolfgang Lehner

摘要:

我们介绍了端到端的支持共存模式版本在一个数据库。虽然并发地运行一个持续开发的应用程序的多个版本是最先进的,但对于数据库来说很难做到这一点。为了保持多个共存的模式版本存活;它们都访问相同的数据集;开发人员通常使用手写的delta代码(例如SQL中的视图和触发器)。这种增量代码很难编写,也很难维护:如果数据库管理员决定调整物理表模式,所有手写的增量代码也需要调整,这在实践中是昂贵的,而且容易出错。在本文中,我们介绍了InVerDa:开发人员使用简单的双向数据库演化语言BiDEL,它携带了足够的信息来自动生成所有增量代码。不需要额外的工作,新的模式版本就可以立即访问,并且任何版本中的数据更改都可以同时在所有模式版本中可见。InVerDa还允许轻松更改物理表设计,而不会影响共存模式版本的可用性。这大大提高了健壮性(数量级更少的代码行),并允许显著的性能优化。一个主要的贡献是正式的评估,每个模式版本的行为就像一个共同的成熟的数据库模式,独立于所选择的物理表设计。

英文摘要:

We introduce end-to-end support of co-existing schema versions within one database. While it is state of the art to run multiple versions of a continuously developed application concurrently, it is hard to do the same for databases. In order to keep multiple co-existing schema versions alive; which are all accessing the same data set; developers usually employ handwritten delta code (e.g. views and triggers in SQL). This delta code is hard to write and hard to maintain: if a database administrator decides to adapt the physical table schema, all handwritten delta code needs to be adapted as well, which is expensive and error-prone in practice. In this paper, we present InVerDa: developers use the simple bidirectional database evolution language BiDEL, which carries enough information to generate all delta code automatically. Without additional effort, new schema versions become immediately accessible and data changes in any version are visible in all schema versions at the same time. InVerDa also allows for easily changing the physical table design without affecting the availability of co-existing schema versions. This greatly increases robustness (orders of magnitude less lines of code) and allows for significant performance optimization. A main contribution is the formal evaluation that each schema version acts like a common full-fledged database schema independently of the chosen physical table design.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑