# US 2023/0401229 A1 · Replication of unstructured staged data between database deployments

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

- Number: US 2023/0401229 A1
- Document ID: US20230401229A1
- Status: Published application
- Kind: A1
- Application number: 18/051,657
- Filed: 2022-11-01
- Published: 2023-12-14
- Earliest claimed: 2022-06-13
- Assignees: Snowflake Inc.
- Applicants: Snowflake Inc.
- Inventors: Robert Bengt Benedikt Gernhardt; Chong Han; Nithin Mahesh; Aravind Ramarathinam; Saurin Shah; Yanrui Zhang
- Web page: https://patentgrep.com/patent/US20230401229A1

## CPC

- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 16/256: {in federated or virtual databases}
- H04L 67/1095: Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- 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

The distributed database can implement unstructured data replication using an internal or external storage location. Metadata, such as a directory table that lists the unstructured files, can be replicated across different deployments, followed by replication of the staged data. Replicating the staged data can be implemented by replication of only the stage metadata or replication of the database files between the deployments.

## Claims

### Claim 1

A method comprising:
identifying staged data for replication from a first database deployment of a network-based database system to a second database deployment of the network-based database system, the staged data comprising unstructured data items stored in a storage device of the first database deployment, the second database deployment being a remote deployment from the first database deployment;
generating, at the second database deployment, a copy of the staged data of the first database deployment;
replicating, by at least one hardware processor, a directory database table from the first database deployment to the second database deployment, the directory database table comprising a list of the unstructured data items stored in the storage device of the first database deployment, the replicating of the directory database table comprising generating, at the second database deployment, a copy of the directory database table of the first database deployment;
replicating stage metadata from the first database deployment to the second database deployment, the stage metadata identifying locations of the unstructured data items in the storage device at the second database deployment;
copying, using the stage metadata, the unstructured data items from the storage device at the first database deployment to the second database deployment; and
replicating the unstructured data items from the first database deployment to the second database deployment using the directory database table and the stage metadata.

### Claim 2 (depends on 1)

The method of claim 1, wherein the storage device is an internal stage that is managed by the network-based database system.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
causing generation of a second storage device at the second database deployment of the network-based database system, the second database deployment being the internal stage that is managed by the network-based database system.

### Claim 4 (depends on 3)

The method of claim 3, wherein the second database deployment replicates the unstructured data items from the storage device to the second storage device at the second database deployment.

### Claim 5 (depends on 1)

The method of claim 1, wherein the storage device is a cloud object storage resource.

### Claim 6 (depends on 1)

The method of claim 1, wherein the storage device is an external stage that is external to the network-based database system.

### Claim 7 (depends on 6)

The method of claim 6, wherein the second database deployment replicates the unstructured data items by accessing the unstructured data items from the storage device that is external to the network-based database system.

### Claim 8 (depends on 7)

The method of claim 7, wherein the unstructured data items are not copied and stored at the second database deployment.

### Claim 9 (depends on 1)

The method of claim 1, wherein the stage metadata includes pointers to memory locations of the unstructured data items stored in the storage device.

### Claim 10 (depends on 9)

The method of claim 9, wherein the second database deployment uses the pointers to access the unstructured data items from the storage device for replication at the second database deployment.

### Claim 11

A system comprising:
one or more computer processors; and
one or more computer-readable mediums storing instructions that, when executed by the one or more computer processors, cause the system to perform operations comprising:
identifying staged data for replication from a first database deployment of a network-based database system to a second database deployment of the network-based database system, the staged data comprising unstructured data items stored in a storage device of the first database deployment, the second database deployment being a remote deployment from the first database deployment;
generating, at the second database deployment, a copy of the staged data of the first database deployment;
replicating, by at least one hardware processor, a directory database table from the first database deployment to the second database deployment, the directory database table comprising a list of the unstructured data items stored in the storage device of the first database deployment, the replicating of the directory database table comprising generating, at the second database deployment, a copy of the directory database table of the first database deployment;
replicating stage metadata from the first database deployment to the second database deployment, the stage metadata identifying locations of the unstructured data items in the storage device at the second database deployment;
copying, using the stage metadata, the unstructured data items from the storage device at the first database deployment to the second database deployment; and
replicating the unstructured data items from the first database deployment to the second database deployment using the directory database table and the stage metadata.

### Claim 12 (depends on 11)

The system of claim 11, wherein the storage device is an internal stage that is managed by the network-based database system.

### Claim 13 (depends on 12)

The system of claim 12, the operations further comprising:
causing generation of a second storage device at the second database deployment of the network-based database system, the second database deployment being the internal stage that is managed by the network-based database system.

### Claim 14 (depends on 13)

The system of claim 13, wherein the second database deployment replicates the unstructured data items from the storage device to the second storage device at the second database deployment.

### Claim 15 (depends on 11)

The system of claim 11, wherein the storage device is a cloud object storage resource.

### Claim 16 (depends on 11)

The system of claim 11, wherein the storage device is an external stage that is external to the network-based database system.

### Claim 17 (depends on 16)

The system of claim 16, wherein the second database deployment replicates the unstructured data items by accessing the unstructured data items from the storage device that is external to the network-based database system.

### Claim 18 (depends on 17)

The system of claim 17, wherein the unstructured data items are not copied and stored at the second database deployment.

### Claim 19 (depends on 11)

The system of claim 11, wherein the stage metadata includes pointers to memory locations of the unstructured data items stored in the storage device.

### Claim 20 (depends on 19)

The system of claim 19, wherein the second database deployment uses the pointers to access the unstructured data items from the storage device for replication at the second database deployment.

### Claim 21

A computer-storage medium storing instructions that, when executed by one or more computer processors of one or more computing devices, cause the one or more computing devices to perform operations comprising:
identifying staged data for replication from a first database deployment of a network-based database system to a second database deployment of the network-based database system, the staged data comprising unstructured data items stored in a storage device of the first database deployment, the second database deployment being a remote deployment from the first database deployment;
generating, at the second database deployment, a copy of the staged data of the first database deployment;
replicating, by at least one hardware processor, a directory database table from the first database deployment to the second database deployment, the directory database table comprising a list of the unstructured data items stored in the storage device of the first database deployment, the replicating of the directory database table comprising generating, at the second database deployment, a copy of the directory database table of the first database deployment;
replicating stage metadata from the first database deployment to the second database deployment, the stage metadata identifying locations of the unstructured data items in the storage device at the second database deployment;
copying, using the stage metadata, the unstructured data items from the storage device at the first database deployment to the second database deployment; and
replicating the unstructured data items from the first database deployment to the second database deployment using the directory database table and the stage metadata.

### Claim 22 (depends on 21)

The computer-storage medium of claim 21, wherein the storage device is an internal stage that is managed by the network-based database system.

### Claim 23 (depends on 22)

The computer-storage medium of claim 22, the operations further comprising:
causing generation of a second storage device at the second database deployment of the network-based database system, the second database deployment being the internal stage that is managed by the network-based database system.

### Claim 24 (depends on 23)

The computer-storage medium of claim 23, wherein the second database deployment replicates the unstructured data items from the storage device to the second storage device at the second database deployment.

### Claim 25 (depends on 21)

The computer-storage medium of claim 21, wherein the storage device is a cloud object storage resource.

### Claim 26 (depends on 21)

The computer-storage medium of claim 21, wherein the storage device is an external stage that is external to the network-based database system.

### Claim 27 (depends on 26)

The computer-storage medium of claim 26, wherein the second database deployment replicates the unstructured data items by accessing the unstructured data items from the storage device that is external to the network-based database system.

### Claim 28 (depends on 27)

The computer-storage medium of claim 27, wherein the unstructured data items are not copied and stored at the second database deployment.

### Claim 29 (depends on 21)

The computer-storage medium of claim 21, wherein the stage metadata includes pointers to memory locations of the unstructured data items stored in the storage device.

### Claim 30 (depends on 29)

The computer-storage medium of claim 29, wherein the second database deployment uses the pointers to access the unstructured data items from the storage device for replication at the second database deployment.
