A data index method and system based on full cost calculation

A cost calculation and data indexing technology, which is applied in database indexing, structured data retrieval, special data processing applications, etc., can solve problems affecting index cost evaluation, not considering multiple conditions, etc., to improve retrieval efficiency , improve retrieval efficiency and shorten the scope

Active Publication Date: 2021-02-19
成都索贝视频云计算有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Obviously this is not the optimal execution plan
[0011] In addition, the existing cost calculation method does not take into account the situation that an index contains multiple conditions
[0012] (1) "AND" connection, most of the existing methods choose one of them for cost evaluation: the same index contains condition 1 and condition 2, condition 1 points to 1 million data, condition 2 points to 200 data, select Whether condition 1 or condition 2 seriously affects the cost evaluation of this index;
[0013] (2) "OR" connection, most of the existing methods are direct full table traversal, and the retrieval efficiency is very low

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
  • A data index method and system based on full cost calculation
  • A data index method and system based on full cost calculation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064]Specific embodiments of the present invention will be described in detail below, and it should be noted that the embodiments described here are only for illustration, not for limiting the present invention. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one of ordinary skill in the art that these specific details need not be employed to practice the present invention. In other instances, well-known circuits, software or methods have not been described in detail in order not to obscure the present invention.

[0065] Throughout this specification, reference to "one embodiment," "an embodiment," "an example," or "example" means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in the present invention. In at least one embodiment. Thus, appearances of the phrases "in one embo...

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 a method and system of data indexing based on the full cost calculation, and relates to the field of data indexing application calculation. The method of data indexing based on the full cost calculation comprises the steps of detecting indexes which can be used, judging the number of indexes which can be used, estimating costs, sorting estimated values and estimating hit values; the device of data indexing based on the full cost calculation is characterized by comprising an index detection module, an index number judgement module, a cost estimation module, an estimation sorting module and a hit number estimation module; a terminal system comprises a processor and a memory device. The method and system of data indexing based on the full cost calculation are capable of achieving cost assessment of the indexes contained in the query conditions each time when performing a query operation, capable of selecting the condition with the least operating cost as the index for the next query, and can effectively improve the efficiency of retrieval.

Description

technical field [0001] The invention relates to the field of data index application computing, in particular to a data index method and system based on full cost calculation. Background technique [0002] Index performance is the key to database performance improvement. The traditional SQL database architecture design is in the era of expensive memory. In order to reduce the demand for memory, the execution process of SQL statements is as follows: [0003] Check grammar for spelling mistakes; [0004] Check whether the access object has corresponding permissions; [0005] Use the internal hash algorithm to obtain the hash value of the SQL, and then compare it with the hash value in the cache; [0006] If there is the same hash value, the execution plan in the cache is directly executed, which is called soft resolution; [0007] If it does not exist, parse the SQL to generate a parsing tree and an execution plan, which is called hard parsing; [0008] Return the execution...

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 Patents(China)
IPC IPC(8): G06F16/22
CPCG06F16/2272
Inventor 吴春中张浩阳
Owner 成都索贝视频云计算有限公司
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