Method and device for storing and querying data

A data storage and data block technology, applied in the computer field, can solve problems such as reducing data usage efficiency, achieve fast retrieval, fast positioning, and improve usage efficiency

Active Publication Date: 2015-05-27
SHENZHEN TENCENT COMP SYST CO LTD
View PDF4 Cites 42 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on this, it is necessary to provide a data storage method and device, a data query method and

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for storing and querying data
  • Method and device for storing and querying data
  • Method and device for storing and querying data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0044] It can be understood that the terms "first", "second" and the like used in the present invention can be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, a first preset number of digits could be referred to as a second preset number of digits, and similarly, a second preset number of digits could be referred to as a first preset number of digits without departing from the scope of the present invention. digits. Both the first preset number and the second preset...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method for storing data. The data to be stored include original data identifiers, and original data contents corresponding to the original data identifiers. The method comprises the steps of clustering the data to be stored according to the original data identifier, wherein each class is corresponding to a data block; generating data block identifiers according to the original data identifiers of the store to be stored and corresponding to the data blocks; compressing the original data contents of the data to be stored and corresponding to the data blocks; storing the compressed data contents into data areas of the data blocks and acquiring address identifiers of the compressed data contents; generating indexes according to the original data identifiers of the data to be stored and corresponding to the data blocks and the address identifiers; storing the indexes into index areas in the data blocks. With the adoption of the data storing module, the use efficiency of the data is greatly increased. The invention further provides a data storing device, a data querying method and a data querying device.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a data storage and query method and device. Background technique [0002] With the advancement of computer technology, computer technology has had a great impact on people's life and work, and a large amount of data needs to be stored and processed by computers. At present, the data to be stored by computers has risen from the original MB (megabytes) and GB (gigabytes) to TB (terabytes) or even PB (petabytes). With the explosive growth of data, how to reduce the cost of data storage has become an urgent problem to be solved. [0003] The traditional means of reducing data storage costs is to directly compress the data and store it. However, this way of sacrificing computing time in exchange for local storage space reduces the efficiency of data usage. For example, when querying data, the compressed All data can only be used after decompression. Contents of the invention ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30
CPCG06F3/0608G06F3/0644G06F16/901G06F16/903
Inventor 张元龙林汇宝
Owner SHENZHEN TENCENT COMP SYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products