# US 2017/0286515 A1 · Supplementing change streams

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0286515 A1
- Document ID: US20170286515A1
- Status: Published application
- Kind: A1
- Application number: 15/489,840
- Filed: 2017-04-18
- Published: 2017-10-05
- Earliest claimed: 2016-04-05
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Paul M. Cadarette; James D. Spyker
- Web page: https://patentgrep.com/patent/US20170286515A1

## CPC

- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Aspects of the present invention disclose a method, computer program product, and system for analyzing change stream data. The method includes identifying, by one or more computer processors, a list of changes in a replication stream. The method further includes determining, by one or more computer processors, if one or more changes in the list of changes matches a criteria for a hint. The method further includes in response to determining that one or more of the changes in the list of changes matches the criteria for a hint, inserting, by one or more computer processors, the hint into the list of changes prior to a first change of the one or more changes that triggers a match in criteria.

## Claims

### Claim 1

A method for analyzing change stream data, the method comprising:
identifying, by one or more computer processors, a list of changes in a replication stream;
determining, by one or more computer processors, if one or more changes in the list of changes matches a criteria for a hint; and
in response to determining that one or more of the changes in the list of changes matches the criteria for a hint, inserting, by one or more computer processors, the hint into the list of changes prior to a first change of the one or more changes that triggers a match in criteria.

### Claim 2 (depends on 1)

The method of claim 1, wherein identifying, by one or more computer processors, a list of changes in a replication stream comprises:
identifying, by one or more computer processors, a list of changes occurring on a first database, wherein the list of changes in the first database are sent to a second database.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining, by one or more computer processors, if one or more changes in the list of changes matches a criteria for a hint comprises:
identifying, by one or more computer processors, criteria of one or more preset hints;
reviewing, by one or more computer processors, the list of changes in a replication stream; and
determining, by one or more computer processors, if the identified criteria of the one or more preset hints matches the reviewed list of changes in a replication stream.

### Claim 4 (depends on 1)

The method of claim 1, wherein criteria for a hint comprises one or more specific changes in the list of changes that occur in a specific sequence.

### Claim 5 (depends on 2)

The method of claim 2, wherein a hint comprises an instruction for reducing the amount of changes needed in a second database to match changes made to a first database.

### Claim 6 (depends on 3)

The method of claim 3, wherein identifying, by one or more computer processors, criteria of one or more preset hints comprises:
identifying, by one or more computer processors, a pattern of changes in the identified list of changes; and
determining, by one or more computer processors, if the pattern of changes matches the criteria for one or more preset hints.

### Claim 7 (depends on 1)

The method of claim 1, wherein a list of changes in a replication stream further comprises:
identifying, by one or more computer processors, a first sequence of changes in the list of changes;
determining, by one or more computer processors, if a total number of changes in the sequence of changes in the list of changes could be reduced in a new sequence of changes by fewer than the total number of changes to result in a same outcome of changes; and
creating, by one or more computer processors, a new hint that matches the new sequence of changes.

### Claim 8 (depends on 7)

The method of claim 7, wherein, the created hint comprises a new sequence of changes and a criteria for the created new hint is the first sequence of changes in the list of changes.

### Claim 9

A method for analyzing change stream data, the method comprising:
identifying, by one or more computer processors, a pattern of changes in a replication stream;
identifying, by one or more computer processors, a total number of changes in the pattern of changes that occur on a first database;
determining, by one or more computer processors, if one or more changes on a second database, wherein the one or more changes on the second database is less than the total number of changes, can be implemented to create a same outcome on the second database as the outcome of the total number of changes on the first database; and
in response to determining that the one or more changes to the second database is less than the total number of changes to the first database and creates the same outcome on the second database as the total number of changes on the first database, inserting, by one or more computer processors, a hint prior to a first change in the pattern of changes in the replication stream indicating the determined one or more changes should be implemented on the second database.
