Index processing method and device

A processing method and index technology, applied in the Internet field, can solve problems such as low query efficiency, and achieve the effect of improving query efficiency

Active Publication Date: 2019-11-19
BEIJING 58 INFORMATION TECH
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides an index processing method and device to solve the problem of low query efficiency in the prior art

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 processing method and device
  • Index processing method and device
  • Index processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0061] Optionally, on the basis of Embodiment 1 of the index processing device of the present invention, further, the first index includes N sub-indices, where N is an integer greater than 0; each of the N sub-indices corresponds to K read threads, K is an integer greater than or equal to 0;

[0062] Correspondingly, the first processing module 701 of the read thread includes: a processing submodule of the first read thread, configured to read the first sub-index; wherein, the first read thread is the corresponding index of the first sub-index read thread.

[0063] Optionally, all the kernels in the first kernel set are divided into N kernel subsets, and each kernel subset in the N kernel subsets corresponds to each of the sub-indexes one by one; the The read thread corresponding to each sub-index runs on the cores in the core subset corresponding to each sub-index.

[0064]Optionally, the device in this embodiment may further include: an estimation module and a determinatio...

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 an index processing method and device. All the kernels of a server are divided into two kernel sets, a reading thread is limited to operating in kernels in the first kernel set, and a writing thread is limited to operating in kernel in the second kernel set, and in this way, the problem that the writing thread frequently modifies data in a cache, which results in low hit rate of data stored in the cache for the writing thread can be solved; and the probability that the reading thread reads a first index from the cache while needing reading the first index is improved, and the query efficiency is improved.

Description

technical field [0001] The present invention relates to the technical field of the Internet, in particular to an index processing method and device. Background technique [0002] The server can provide users with functions of publishing information and querying information. Usually, the server manages documents by way of index, wherein the index indicates the document corresponding to each keyword. [0003] In the prior art, the server uses different threads to respectively provide the user with the function of querying information and the function of publishing information. Specifically, the user is provided with the function of querying information through the read thread, and the function of publishing information is provided for the user through the write thread. For the query information function, the reading thread needs to determine the keywords that match the query sequence input by the user according to the index, and return the corresponding document to the user ...

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 & AuthorityPatents(China)
IPC IPC(8): G06F16/93G06F12/0802
CPCG06F12/0802G06F16/93
Inventor吕静
OwnerBEIJING 58 INFORMATION TECH