Data transmission method and apparatus

US10979520B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10979520-B2
Application numberUS-201815979951-A
CountryUS
Kind codeB2
Filing dateMay 15, 2018
Priority dateNov 16, 2015
Publication dateApr 13, 2021
Grant dateApr 13, 2021

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Embodiments of the present invention relate to the database field, and in particular, to a data transmission method and apparatus, so as to reduce overheads for data transmission between nodes in a distributed database and lighten network load. In the embodiments of the present invention, a DN determines a column that has a distribution rule of parameters in the column; the DN determines, according to a data type of the parameters of the column and the distribution rule of the parameters in the column, a compression algorithm corresponding to the column; the DN compresses the column using the compression algorithm; and the DN sends a compressed column to a target node. In this way, the overheads for the data transmission between the nodes are reduced, and the network load is lightened.

First claim

Opening claim text (preview).

What is claimed is: 1. A data transmission method, comprising: finding, by a data node (DN) according to a received query command, data that matches one or more keywords comprised in the query command; and determining, by a data node (DN), a column corresponding to the keywords from the data, wherein the column comprises multiple parameters, values of at least two parameters in the multiple parameters are equal; determining, by the DN according to a data type of the parameters of the column and a distribution rule of the parameters in the column, a compression algorithm corresponding to the column; compressing, by the DN, data of the column using the compression algorithm; and sending, by the DN, a compressed column to a target node; wherein the determined compression algorithm corresponding to the column is a run-length encoding (RLE) compression algorithm when the data type of the parameters of the column is a data type that supports the RLE compression algorithm; and the determined compression algorithm corresponding to the column is a dictionary compression algorithm when the data type of the parameters of the column is a data type that supports the dictionary compression algorithm. 2. The method according to claim 1 , further comprising: sending, by the DN, indication information to the target node; wherein the indication information is used to indicate the compression algorithm corresponding to the column, and the indication information is used by the target node to decompress the compressed data to obtain the data. 3. The method according to claim 1 , further comprising: sorting, by the DN according to values of the parameters of the column and on a row-by-row basis, N-row data corresponding to the column, wherein the parameters in the column are in a one-to-one correspondence with rows of the N-row data; wherein when the data type of the parameters of the column is a data type that supports the RLE compression algorithm and the distribution rule of the column is sorted according to the values of the parameters of the column, the compression algorithm corresponding to the column is the RLE compression algorithm. 4. The method according to claim 1 , further comprising: determining, by the DN according to values of the parameters of the column, parameters whose values are equal from the parameters of the column; and arranging together, by the DN, multiple-row data corresponding to the determined multiple parameters whose values are equal, wherein the parameters in the column are in a one-to-one correspondence with rows of N-row data; wherein when the data type of the parameters of the column is a data type that supports the RLE compression algorithm and the distribution rule of the column is arranged together the multiple-row data corresponding to the determined multiple parameters whose values are equal, the compression algorithm corresponding to the column is the RLE compression algorithm. 5. A data transmission apparatus, comprising: a processor, a transceiver, and a memory coupled to the processor, wherein the memory is configured to store an computer-readable program, and the processor is configured to execute the program, so as to: find, according to a received query command, data that matches one or more keywords comprised in the query command; and determine a column corresponding to the keywords from the data, wherein the column comprises multiple parameters, values of at least two parameters in the multiple parameters are equal; determine, according to a data type of the parameters of the column and a distribution rule of the parameters in the column, a compression algorithm corresponding to the column, and compress data of the column using the compression algorithm; and the transceiver is configured to send, under control of the processor, the compressed column to a target node; wherein the determined compression algorithm corresponding to the column is a run-length encoding (RLE) compression algorithm when the data type of the parameters of the column is a data type that supports the RLE compression algorithm; and the determined compression algorithm corresponding to the column is a dictionary compression algorithm when the data type of the parameters of the column is a data type that supports the dictionary compression algorithm. 6. The apparatus according to claim 5 wherein the transceiver is further configured to: send indication information to the target node, wherein the indication information is used to indicate the compression algorithm corresponding to the column, and the indication information is used by the target node to decompress the compressed data to obtain the data. 7. The apparatus according to claim 5 , wherein the processor is further configured to: sort according to values of the parameters of the column and on a row-by-row basis, N-row data corresponding to the column, wherein the parameters in the column are in a one-to-one correspondence with rows of the N-row data; and wherein when the data type of the parameters of the column is a data type that supports the RLE compression algorithm and the distribution rule of the column is sorted according to the values of the parameters of the column, the compression algorithm corresponding to the column is the RLE compression algorithm. 8. The apparatus according to claim 5 , wherein the processor is further configured to: determine according to values of the parameters of the column, parameters whose values are equal from the parameters of the column; arrange together multiple-row data corresponding to the determined multiple parameters whose values are equal, wherein the parameters in the column are in a one-to-one correspondence with rows of N-row data; and wherein when the data type of the parameters of the column is a data type that supports the RLE compression algorithm and the distribution rule of the column is arranged together the multiple-row data corresponding to the determined multiple parameters whose values are equal, the compression algorithm corresponding to the column is the RLE compression algorithm. 9. A non-transitory computer-readable medium storing computer instructions for data transmission, which when executed by one or more processors, cause the one or more processors to perform a method, the method comprising: finding, according to a received query command, data that matches one or more keywords comprised in the query command; and determining a column corresponding to the keywords from the data; determining, according to a data type of the parameters of the column and a distribution rule of the parameters in the column, a compression algorithm corresponding to the column; compressing data of the column using the compression algorithm; and sending a compressed data of the column to a target node; wherein the determined compression algorithm corresponding to the column is a run length encoding (RLE) compression algorithm when the data type of the parameters of the column is a data type that supports the RLE compression algorithm; and the determined compression algorithm corresponding to the column is a dictionary compression algorithm when the data type of the parameters of the column is a data type that supports the dictionary compression algorithm. 10. The computer-readable medium according to claim 9 , wherein the method further comprises: sending, by the DN, indication information to the target node, wherein the indication information is used to indicate the compression algorithm corresponding to the column, and the indication information is used by the target node to decompress the compressed data to obtain the data. 11. The computer-readable m

Assignees

Inventors

Classifications

  • Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor · CPC title

  • H03M7/30Primary

    Compression (speech analysis-synthesis for redundancy reduction G10L19/00; for image communication H04N); Expansion; Suppression of unnecessary data, e.g. redundancy reduction · CPC title

  • Reducing the amount or size of exchanged application data · CPC title

  • Selection between different types of compressors · CPC title

  • Information retrieval; Database structures therefor; File system structures therefor · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10979520B2 cover?
Embodiments of the present invention relate to the database field, and in particular, to a data transmission method and apparatus, so as to reduce overheads for data transmission between nodes in a distributed database and lighten network load. In the embodiments of the present invention, a DN determines a column that has a distribution rule of parameters in the column; the DN determines, accor…
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification H03M7/30. Mapped technology areas include Electricity.
When was this patent published?
Publication date Tue Apr 13 2021 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).