Declarative Database Entity Changes With Atomic Incremental Updates
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional database systems face issues with atomicity when multiple ALTER commands are executed outside of a DDL-compatible database transaction, leading to potential intermediate changes being visible to users.
Innovation Solution
Implementing declarative statements for creating and modifying database entities, such as tables, in an atomic and incremental manner using a 'CREATE OR ALTER' command, ensuring all changes are committed in a single transaction.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If multiple ALTER commands are executed outside of a DDL-compatible database transaction, then the commands can be run flexibly and independently, but atomicity is lost and intermediate changes become visible to users
Solution Approach 1:
The patent merges multiple ALTER commands into a single DDL-compatible transaction, ensuring that all changes are applied atomically. This combines previously separate operations into one unified transactional unit, preventing intermediate states from being visible while maintaining operational flexibility through the transaction interface.
2Productivity
If multiple ALTER commands are executed outside of a DDL-compatible database transaction, then each command can be executed independently, but intermediate changes are visible to users causing data integrity issues
Solution Approach 1:
The system performs preliminary validation and planning of all ALTER commands within the transaction before any changes are applied. This preliminary action ensures that the complete set of changes is prepared and validated, then executed atomically as a unit, preventing any intermediate changes from becoming visible to users.
3Ease of manufacture
If conventional ALTER commands are used, then simple modifications can be made, but lack of atomicity requires additional transaction management complexity
Solution Approach 1:
The patent creates a universal DDL-compatible transaction framework that handles multiple ALTER commands with atomicity guarantees built-in. This multi-functional transaction system can accommodate various types of ALTER operations while providing consistent atomicity and visibility control, reducing the need for complex external transaction management logic.
Data Source
AI summary
Techniques for creating and modifying database entities, such as tables, tasks, etc., using declarative statements are described. Declarative statements specify a target state of the entity without specifying specific actions. The techniques described herein apply changes to the database entity atomically and incrementally.


