[Paper Review] Living in Parallel Realities -- Co-Existing Schema Versions with a Bidirectional Database Evolution Language
This paper proposes InVerDa, a system that enables co-existing schema versions in a single database using BiDEL, a bidirectional database evolution language. BiDEL automatically generates delta code (views and triggers) to synchronize data across schema versions, eliminating manual maintenance and enabling transparent, bidirectional data propagation with minimal performance overhead.
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.
Motivation & Objective
- Address the lack of native support for co-existing schema versions in modern DBMSs, which forces developers to manually maintain complex delta code.
- Reduce the cost and error-prone nature of database schema evolution during agile development and long-term system maintenance.
- Enable database administrators to freely modify physical table schemas without breaking existing schema versions or requiring manual delta code updates.
- Provide a formally verified, bidirectional transformation mechanism that ensures correctness and consistency across all schema versions.
- Achieve high performance and maintainability by automatically generating and managing delta code, reducing codebase size by 359x compared to handwritten SQL.
Proposed method
- Design BiDEL, a bidirectional database evolution language that defines schema and data transformations in both forward and backward directions.
- Formally evaluate bidirectionality to guarantee correctness of read and write propagation between all schema versions.
- Implement InVerDa as a DBMS extension that uses BiDEL to automatically generate views and triggers for data synchronization across schema versions.
- Support full access propagation: writes in any schema version are visible in all others, and each version behaves like a standalone, full-fledged database.
- Decouple logical schema evolution from physical schema design, allowing DBAs to optimize physical storage without affecting application-level schema versions.
- Evaluate performance by measuring propagation overhead across multiple SMOs, showing minimal deviation (6.3%) from theoretical expectations.
Experimental results
Research questions
- RQ1How can co-existing schema versions be supported in a single database without requiring manual delta code?
- RQ2What formal guarantees are needed to ensure correct bidirectional data propagation between schema versions?
- RQ3Can a bidirectional database evolution language reduce the complexity and maintenance cost of schema evolution compared to handwritten SQL?
- RQ4To what extent does the performance overhead of automatically generated delta code impact query processing?
- RQ5Can physical schema optimizations be applied independently of logical schema versions without breaking application compatibility?
Key findings
- BiDEL scripts are 359 times shorter than equivalent handwritten SQL scripts, significantly reducing codebase size and maintenance burden.
- The performance overhead of automatically generated delta code is minimal, with measured propagation times deviating by only 6.3% on average from theoretical expectations.
- InVerDa enables transparent, bidirectional data propagation: changes in any schema version are immediately visible in all others, with each version appearing as a fully functional standalone database.
- Database administrators can freely modify the physical table schema without affecting the availability or correctness of co-existing logical schema versions.
- The system supports efficient query optimization by allowing physical schema adaptation to workload changes without breaking backward compatibility.
- The formal validation of bidirectionality ensures that all read and write operations are correctly propagated across all schema versions, providing strong correctness guarantees.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.