×

System and methods for live data migration

  • US 10,452,626 B2
  • Filed: 09/29/2017
  • Issued: 10/22/2019
  • Est. Priority Date: 11/10/2016
  • Status: Active Grant
First Claim
Patent Images

1. A system for live data migration, the system comprising:

  • one or more processors; and

    memory storing instructions that, when executed by the one or more processors, cause the system to perform;

    receiving a first query requesting a modification of a first table of a first database schema during a live migration of the first table to a second table of a second database schema, the first table storing live data;

    modifying, based on the first query, a first row of a diff table corresponding to a first row of the first table;

    updating a mutation table to indicate the requested modification of the first table, wherein the mutation table tracks one or more requested modifications to the first table;

    receiving a second query requesting a read of a particular row of the first table during the live migration of the first table to the second table;

    determining, in response to receiving the second query, whether the mutation table indicates a previous query requested modification of the particular row of the first table, the previous query being previous to at least the second query;

    if the mutation table indicates the previous query requested modification of the particular row of the first table;

    providing data of a particular row of the diff table corresponding to the particular row of the first table in response to the second query; and

    if the mutation table does not indicate the previous query requested modification of the particular row of the first table;

    providing the live data of the particular row of the first table in response to the second query.

View all claims
  • 8 Assignments
Timeline View
Assignment View
    ×
    ×