Database Zero Downtime Upgrade via Table Links and Triggers

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Database upgrades often require downtime, as existing methods necessitate creating backups and duplicating data, leading to increased memory consumption and inefficiencies.

Innovation Solution

The implementation of table links and application triggers allows for concurrent access and data replication between different database versions, enabling zero-downtime upgrades by creating clones of tables and using calculated fields, which minimizes memory usage and persists data efficiently.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional database upgrade methods are used, then data consistency is ensured, but system downtime increases and memory consumption increases

Engineering Contradiction:
Improvedata consistencyVSAvoidsystem downtime
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent segments the database schema into multiple versions (first access schema and second access schema) that can coexist. Table link objects allow different application versions to access different schema versions simultaneously, enabling parallel operation without requiring full system downtime for upgrades.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces table link objects as intermediaries between application versions and database tables. These link objects act as mediators that enable concurrent access to the same underlying data by different application versions with different access schemas, resolving the conflict between maintaining data consistency and enabling zero-downtime upgrades.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If table clones are created for upgrade, then data replication is enabled, but memory consumption increases

Engineering Contradiction:
Improveupgrade efficiencyVSAvoidmemory consumption
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The patent uses table link objects that reference existing database tables rather than creating full physical clones. The link objects establish virtual connections to the same underlying data storage, allowing multiple application versions to access and replicate data from the same source without duplicating the actual data in memory.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The table link objects serve multiple functions simultaneously: they enable concurrent access for different application versions, support data replication through triggers, and maintain referential integrity. This multi-functionality eliminates the need for separate dedicated structures for each purpose, reducing overall memory consumption.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Adaptability or versatility

If multiple access schemas are maintained, then concurrent access is enabled, but device complexity increases

Engineering Contradiction:
Improveconcurrent access capabilityVSAvoidschema management complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The table link objects serve as intermediaries that abstract the complexity of managing multiple access schemas. They provide a unified interface for accessing tables while handling the underlying schema versioning and compatibility logic, reducing the apparent complexity for applications while enabling concurrent access to different schema versions.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent implements application triggers that automatically execute when data changes occur through table link objects. This feedback mechanism ensures data consistency and coordination between different access schemas without requiring complex manual management, as the system automatically responds to changes and maintains integrity across versions.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS9501516B2Zero downtime upgrade of database applications using triggers and calculated fields
Publication Date: 2016.11.22 SAP SE
  • US9501516B2 patent drawing
  • US9501516B2 patent drawing
  • US9501516B2 patent drawing

AI summary

An upgrade of a first version of a database application to a second version of a database application that both have a same data schema is initiated. The first database application has a first access schema such that at least one table in the data schema is linked to the first access schema. The second version of the database application has a second access schema such that at least one table in the data schema is linked to the second access schema. Subsequently, concurrent access is provided for each access schema to at least one database table in the data schema to the first and second versions of the database application. The concurrent access is enabled by a respective at least one table link object in each of the first access schema and the second access schema that is used by database views or stored procedures such access schema.