Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Index generation method, data inquiry method, index generation device, data inquiry device and system

A technology of indexing and data recording, applied in the field of big data processing, can solve the problems of inability to meet real-time requirements of query scenarios, slow query speed, etc., and achieve the effect of fast query processing

Inactive Publication Date: 2016-06-22
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 41 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem that the query speed is slow when using the current index file to query and cannot meet the query scenarios with high real-time requirements, the embodiment of the present invention provides an index generation method, data query method, device and system

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
  • Index generation method, data inquiry method, index generation device, data inquiry device and system
  • Index generation method, data inquiry method, index generation device, data inquiry device and system
  • Index generation method, data inquiry method, index generation device, data inquiry device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0037] Please refer to figure 1 , which shows a method flowchart of an index generation method provided by an embodiment of the present invention. In this embodiment, the method for generating an index is applied to a storage system as an example, including:

[0038] In step 101, a data file is obtained, and the data file includes at least one data record.

[0039] Step 102, generating corresponding index information for each data record, where the index information is used to indicate the storage location of the data record in the data file.

[0040] Step 103, for each data record in the data file, classify and store the corresponding index information into an index file in the hierarchical index directory according to the attribute...

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 discloses an index generation method, a data inquiry method, an index generation device, a data inquiry device and a system, and belongs to the field of data storage. The index generation method comprises the following steps of obtaining a data file; generating corresponding index information for each data record; and for each data record in the data file, storing the corresponding index information into an index file in a hierarchy index directory in a classified way according to the attribute information of the data record, wherein the hierarchy index directory includes n index files positioned in different directories, the n is greater than or equal to 1, and the index files in each directory correspond to one group of attribute information. The index information is dispersed into different directories of the hierarchy index directory according to the attribute information of the data record; the problem of low inquiry speed during the inquiry by using the existing index file when mass data is stored is solved; and the effect that the fast inquiry and processing can be provided even when mass data is stored is achieved.

Description

technical field [0001] The invention relates to the field of big data processing, in particular to an index generation method, data query method, device and system. Background technique [0002] As the functions of the business system become more and more powerful, the data stored in the business system is also increasing. [0003] Index files are usually established in current storage systems, for example, one data file corresponds to one index file, or one database corresponds to one index file. When it is necessary to query data records in the storage system, first query the index in the index file according to the index key, the index records the offset of the target data record in the data file, and then extract it from the data file according to the queried index Output the target data record, and use the target data record as the query result. [0004] In the process of implementing the present invention, the inventors found that the prior art has at least the follo...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 姚永刚王才平王周朱凯林育佳刘忠真吴泽君
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products