# US 2026/0244360 A1 · Data Processing Method and Related Device

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

- Number: US 2026/0244360 A1
- Document ID: US20260244360A1
- Status: Published application
- Kind: A1
- Application number: 19/468,711
- Filed: 2026-02-03
- Published: 2026-08-20
- Earliest claimed: 2023-08-04
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Gong Zhang; Xin Yao; Renhai Chen; Keji Huang
- Web page: https://patentgrep.com/patent/US20260244360A1

## CPC

- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 16/2272: {Management thereof}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 16/22: Indexing; Data structures therefor; Storage structures
- G06F 16/221: {Column-oriented storage; Management thereof}
- G06F 16/2237: {Vectors, bitmaps or matrices}
- G06F 16/28: Databases characterised by their database models, e.g. relational or object models
- G06F 16/906: Clustering; Classification
- H03M 7/707: {Structured documents, e.g. XML}
- H03M 7/3079: {Context modeling}
- H03M 7/40: Conversion to or from variable length codes, e.g. Shannon-Fano code, Huffman code, Morse code
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

A data processing method includes: obtaining an operation request, where the operation request includes an operation instruction and to-be-operated data; performing product quantization encoding on a target residual value or the to-be-operated data to obtain a target key, where the target residual value is a residual value between the to-be-operated data and a centric vector of a target data group, and the target data group is a data group to which the to-be-operated data belongs in K data groups; and executing the operation instruction based on the target key and a target learned index corresponding to the target data group.

## Claims

### Claim 1

A method, comprising:
obtaining an operation request comprising an operation instruction and to-be-operated data;
performing, in response to the operation request, product quantization encoding on a target residual value or the to-be-operated data to obtain a target key, wherein the target residual value is between the to-be-operated data and a centric vector of a target data group to which the to-be-operated data belongs in K data groups, and wherein K is an integer greater than or equal to 1; and
executing, based on the target key and a target learned index corresponding to the target data group, the operation instruction.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
outputting, using the target learned index and based on the target key, a pointer corresponding to the to-be-operated data, wherein the target learned index comprises a learned index model and a mapping system;
outputting, using the learned index model and based on the target key, a target position of the target key in the mapping system; and
storing a mapping relationship between the target key and the pointer at the target position.

### Claim 3 (depends on 2)

The method of claim 2, wherein the learned index model comprises a root model, at least two intermediate models, and at least two leaf models, wherein the method further comprises:
selecting, using the root model, from the at least two intermediate models, and based on the target key, a target intermediate model;
selecting, using the target intermediate model and from the at least two leaf models, a target leaf model; and
outputting, using the target leaf model and based on the target key, the target position, and
wherein the target leaf model is a non-linear function.

### Claim 4 (depends on 2)

The method of claim 2, further comprising storing at least a part of the learned index model in a storage corresponding to an external computing device.

### Claim 5 (depends on 1)

The method of claim 1, wherein the operation instruction is a query instruction to read target data corresponding to the to-be-operated data, wherein executing the operation instruction comprises:
obtaining, through the target learned index and based on the target key, a pointer indicating a storage position of the target data; and
obtaining, based on the pointer, the target data,
wherein the target data is associated with the pointer when the pointer is associated with only one piece of data, and
wherein the target data has a smallest distance from the to-be-operated data in multiple pieces of data associated with the pointer when the target data is associated with the multiple pieces.

### Claim 6 (depends on 5)

The method of claim 5, further comprising storing the target data as compressed target data after compression, wherein obtaining the target data comprises:
obtaining, based on the pointer, the compressed target data; and
decompressing, via a decoder, the compressed target data to obtain the target data,
wherein the target data is structured data and comprises N data segments that are based on division using an attribute,
wherein the compressed target data comprises N compressed data segments,
wherein the decoder comprises M sub-decoders,
wherein each of the M sub-decoders is configured to decode at least one of the N compressed data segments, and
wherein M is an integer greater than or equal to 1.

### Claim 7 (depends on 1)

The method of claim 1, wherein the operation instruction is an update instruction, and wherein executing the operation instruction comprises:
writing the to-be-operated data into a storage medium; and
updating the target learned index with a mapping relationship between the target key and a pointer indicating a storage position of the to-be-operated data in the storage medium.

### Claim 8 (depends on 7)

The method of claim 7, wherein writing the to-be-operated data comprises:
encoding and compressing, via an encoder corresponding to the target data group, the to-be-operated data to obtain compressed data, wherein the to-be-operated data is structured data and comprises N data segments that are based on division using an attribute, wherein the compressed data comprises N compressed data segments that are based on encoding and compressing the N data segments via M sub-encoders of the encoder, and wherein both M and N are integers greater than or equal to 1; and
writing the compressed data into the storage medium.

### Claim 9 (depends on 1)

The method of claim 1, wherein the operation instruction is an insert instruction, wherein executing the operation instruction comprises:
writing the to-be-operated data into a storage medium; and
inserting a mapping relationship between the target key and a pointer into the target learned index, and
wherein the pointer indicates a storage position of the to-be-operated data in the storage medium.

### Claim 10 (depends on 1)

The method of claim 1, wherein the operation instruction is a delete instruction, and wherein executing the operation instruction comprises:
obtaining, through the target learned index and based on the target key, a pointer indicating a storage position of target data corresponding to the to-be-operated data;
deleting data at the storage position indicated by the pointer; and
deleting, from the target learned index, a mapping relationship between the target key and the pointer.

### Claim 11 (depends on 1)

The method of claim 1, wherein when data distribution in the K data groups satisfies a condition, the method further comprises:
performing re-clustering in a data set to obtain K updated data groups; and
updating a learned index corresponding to each of the K updated data groups.

### Claim 12

A computing device, comprising:
a memory configured to store instructions; and
at least one processor coupled to the memory and configured to execute the instructions to cause the computing device to:
obtain an operation request comprising an operation instruction and to-be-operated data;
perform, in response to the operation request, product quantization encoding on a target residual value or the to-be-operated data to obtain a target key, wherein the target residual value is between the to-be-operated data and a centric vector of a target data group to which the to-be-operated data belongs in K data groups, and wherein K is an integer greater than or equal to 1; and
execute, based on the target key and a target learned index corresponding to the target data group, the operation instruction.

### Claim 13 (depends on 12)

The computing device of claim 12, wherein the at least one processor is further configured to execute the instructions to further cause the computing device to:
output, using the target learned index and based on the target key, a pointer corresponding to the to-be-operated data, wherein the target learned index comprises a learned index model and a mapping system;
output, using the learned index model and based on the target key, a target position of the target key in the mapping system; and
store a mapping relationship between the target key and the pointer at the target position.

### Claim 14 (depends on 13)

The computing device of claim 13, wherein the learned index model comprises a root model, at least two intermediate models, and at least two leaf models, wherein the at least one processor is further configured to execute the instructions to further cause the computing device to:
select, using the root model, from the at least two intermediate models, and based on the target key, a target intermediate model;
select, using the target intermediate model and from the at least two leaf models, a target leaf model; and
output, using the target leaf model and based on the target key, the target position, and
wherein the target leaf model is a non-linear function.

### Claim 15 (depends on 13)

The computing device of claim 13, wherein the at least one processor is further configured to execute the instructions to further cause the computing device to store at least a part of the learned index model in a storage corresponding to an external computing device.

### Claim 16 (depends on 12)

The computing device of claim 12, wherein the operation instruction is a query instruction to read target data corresponding to the to-be-operated data, wherein the at least one processor is further configured to execute the instructions to cause the computing device to further execute the operation instruction by:
obtaining, through the target learned index and based on the target key, a pointer indicating a storage position of the target data; and
obtaining, based on the pointer, the target data,
wherein the target data is associated with the pointer when the pointer is associated with one piece of data, and
wherein the target data has a smallest distance from the to-be-operated data in multiple pieces of data associated with the pointer when the target data is associated with the multiple pieces.

### Claim 17 (depends on 16)

The computing device of claim 16, wherein the at least one processor is further configured to execute the instructions to cause the computing device to store the target data as compressed target data after compression, wherein the at least one processor is further configured to execute the instructions to cause the computing device to further obtain the target data by:
obtaining, based on the pointer, the compressed target data; and
decompressing, via a decoder, the compressed target data to obtain the target data,
wherein the target data is structured data and comprises N data segments that are based on division using an attribute,
wherein the compressed target data comprises N compressed data segments,
wherein the decoder comprises M sub-decoders,
wherein each of the M sub-decoders is configured to decode at least one of the N compressed data segments, and
wherein M is an integer greater than or equal to 1.

### Claim 18 (depends on 12)

The computing device of claim 12, wherein the operation instruction is an update instruction, and wherein the at least one processor is further configured to execute the instructions to cause the computing device to further execute the operation instruction by:
writing the to-be-operated data into a storage medium; and
updating the target learned index with a mapping relationship between the target key and a pointer indicating a storage position of the to-be-operated data in the storage medium.

### Claim 19 (depends on 12)

The computing device of claim 12, wherein the operation instruction is an insert instruction, wherein the at least one processor is further configured to execute the instructions to cause the computing device to further execute the operation instruction by:
writing the to-be-operated data into a storage medium; and
inserting a mapping relationship between the target key and a pointer into the target learned index, and
wherein the pointer indicates a storage position of the to-be-operated data in the storage medium.

### Claim 20

A computer program product comprising instructions that are stored on a non-transitory computer-readable storage medium and that, when executed by at least one processor, cause a computing device to:
obtain an operation request comprising an operation instruction and to-be-operated data;
perform, in response to the operation request, product quantization encoding on a target residual value or the to-be-operated data to obtain a target key, wherein the target residual value is between the to-be-operated data and a centric vector of a target data group to which the to-be-operated data belongs in K data groups, and wherein K is an integer greater than or equal to 1; and
execute, based on the target key and a target learned index corresponding to the target data group, the operation instruction.
