Live Schema Migration Using Mutation Tables for Data Integrity

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional data migration processes face challenges in maintaining data integrity and availability during live migrations, particularly when handling queries that modify or delete data, as existing systems struggle to track changes accurately and provide up-to-date data.

Innovation Solution

A computing system maintains a mutation table to track changes during schema migration, updating it with modifications and using it to determine the source of data based on query type, ensuring that queries are processed with the most recent data by referencing the mutation table to decide between using new or old schema data.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If data migration is performed live without taking the database offline, then data availability and application continuity are improved, but data integrity and accuracy during migration deteriorate due to concurrent read/write operations

Engineering Contradiction:
Improvedata availabilityVSAvoiddata integrity
Core Design Contradiction:
ReliabilityVSManufacturing precision

Solution Approach 1:

The patent segments the database tables into source tables (old schema) and destination tables (new schema), maintaining both simultaneously during migration. A mutation table is introduced to track changes separately, allowing concurrent operations on different table sets without interference.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The mutation table serves as an intermediary mechanism that tracks all modifications to source tables during migration. This mediator enables the system to determine whether to read from source or destination tables based on mutation status, resolving the data integrity issue during live migration.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If the database schema is changed by migrating data to a new schema, then system adaptability and future flexibility are improved, but operational complexity during migration deteriorates due to concurrent query processing

Engineering Contradiction:
Improveschema flexibilityVSAvoidmigration operation complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The system continuously monitors database operations and updates the mutation table with feedback about modifications. This feedback mechanism enables dynamic decision-making during query processing, determining whether to serve data from source or destination tables based on real-time mutation status.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent implements dynamic table selection where the system adapts its behavior during migration based on mutation table status. The query processing logic dynamically determines whether to read from source or destination tables, providing flexible operation during schema changes.

Inventive Principle:
Principle #15Dynamics

3Productivity

If all data is migrated to the new schema immediately, then schema modernization is improved, but data loss during transition deteriorates due to uncommitted changes

Engineering Contradiction:
Improvemigration speedVSAvoiddata loss
Core Design Contradiction:
ProductivityVSLoss of information

Solution Approach 1:

The patent performs preliminary actions by creating the destination table structure before migration begins. The mutation table is also prepared in advance to track changes. This preliminary setup enables safe, incremental migration without risking data loss from uncommitted changes.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system copies data from source tables to destination tables incrementally during migration. The mutation table tracks which rows have been copied and their modification status, ensuring that only committed changes are lost if migration is interrupted, while maintaining the ability to resume from the last committed state.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS20260093672A1System and methods for live data migration
Publication Date: 2026.04.02 PALANTIR TECHNOLOGIES INC
  • US20260093672A1 patent drawing
  • US20260093672A1 patent drawing
  • US20260093672A1 patent drawing

AI summary

Systems and methods are provided for data migration. The system may comprise one or more processors and a memory storing instructions that, when executed by the one or more processors, cause the system to migrate at least one first table of a first database schema to at least one second table of a second database schema, determine a query for modifying the first table during the migration, modify the second table based at least in part on the query, and update a mutation table to describe the modification, wherein the mutation table at least describes the modification.