# US 2022/0292068 A1 · Method, electronic device, and computer program product for storing and searching for data

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

- Number: US 2022/0292068 A1
- Document ID: US20220292068A1
- Status: Published application
- Kind: A1
- Application number: 17/224,189
- Filed: 2021-04-07
- Published: 2022-09-15
- Earliest claimed: 2021-03-15
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Zhenzhen Lin; Si Chen; Qiang Chen; Bin He
- Web page: https://patentgrep.com/patent/US20220292068A1

## CPC

- G06F 16/2255: {Hash tables}
- G06F 16/245: Query processing
- G06F 16/322: {Trees}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure provides a method for storing data, including: storing data in a first node, the first node being selected from a first node set including a first edge node and child nodes thereof; selecting, from a second node set including a second edge node and child nodes thereof, a second node for storing the data, the first edge node being a child node of the second edge node; and storing the data in the second node. The present disclosure further provides a method for searching for data. The present disclosure can reduce the time for searching for data in a distributed storage system.

## Claims

### Claim 1

A method for storing data, comprising:
storing data in a first node, the first node being selected from a first node set comprising a first edge node and child nodes thereof;
selecting, from a second node set comprising a second edge node and child nodes thereof, a second node for storing the data, the first edge node being a child node of the second edge node; and
storing the data in the second node.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the first node is determined based on a comparison between hash values of nodes in the first node set and a hash value of the data, and
the second node is determined based on a comparison between hash values of nodes of the second node set and the hash value of the data.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising:
selecting, from a third node set comprising a third edge node and child nodes thereof, a third node for storing the data, the second edge node being a child node of the third edge node; and
storing the data in the third node.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
in response to a failure in storing the data in the first node, storing the data in the first edge node; and
in response to a failure in storing the data in the second node, storing the data in the second edge node.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the data is metadata of another piece of data and at least comprises a storage location of the other piece of data.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the child nodes of the first edge node are terminal devices.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the data and the hash value thereof are stored in association.

### Claim 8

A method for searching for data, comprising:
using a hash value of the data to search a first node set comprising a first edge node and child nodes thereof for the data; and
in response to a failure in finding the data in the first node set, using the hash value of the data to search for the data in a second node set comprising a second edge node and child nodes thereof, the first edge node being a child node of the second edge node.

### Claim 9 (depends on 8)

The method according to claim 8, further comprising:
receiving the searching from one of the child nodes of the first edge node.

### Claim 10 (depends on 8)

The method according to claim 8, wherein searching the first node set for the data comprises:
determining a first node in the first node set based on a comparison between nodes in the first node set and the hash value; and
using the hash value to search the first node for the data.

### Claim 11 (depends on 10)

The method according to claim 10, further comprising:
in response to a failure in finding the data in the first node, determining a second node in the second node set via the first node and based on a comparison between nodes in the second node set and the hash value; and
searching the second node for the data.

### Claim 12 (depends on 10)

The method according to claim 10, further comprising:
in response to a failure in finding the data in the first node, searching the first edge node in the first node set for the data.

### Claim 13 (depends on 8)

The method according to claim 8, wherein the data is metadata of another piece of data and at least comprises a storage location of the other piece of data.

### Claim 14

An electronic device, comprising:
at least one processing unit; and
at least one memory that is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, wherein the instructions, when executed by the at least one processing unit, cause the electronic device to perform a method for storing data, the method comprising:
storing data in a first node, the first node being selected from a first node set comprising a first edge node and child nodes thereof;
selecting, from a second node set comprising a second edge node and child nodes thereof, a second node for storing the data, the first edge node being a child node of the second edge node; and
storing the data in the second node.

### Claim 15 (depends on 14)

The electronic device according to claim 14, wherein the first node is determined based on a comparison between hash values of nodes in the first node set and a hash value of the data, and
the second node is determined based on a comparison between hash values of nodes of the second node set and the hash value of the data.

### Claim 16 (depends on 14)

The electronic device according to claim 14, further comprising:
selecting, from a third node set comprising a third edge node and child nodes thereof, a third node for storing the data, the second edge node being a child node of the third edge node; and
storing the data in the third node.

### Claim 17 (depends on 14)

The electronic device according to claim 14, further comprising:
in response to a failure in storing the data in the first node, storing the data in the first edge node; and
in response to a failure in storing the data in the second node, storing the data in the second edge node.

### Claim 18 (depends on 14)

The electronic device according to claim 14, wherein the data is metadata of another piece of data and at least comprises a storage location of the other piece of data.

### Claim 19 (depends on 1)

A non-transitory computer storage medium comprising machine-executable instructions that, when executed by a device, cause the device to perform the method according to claim 1.

### Claim 20 (depends on 1)

A computer program product comprising machine-executable instructions that, when executed by a device, cause the device to perform the method according to claim 1.
