Inquiry planning method and device

A technology for planning and querying paths, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as low execution cost, and achieve the effect of low execution cost

Inactive Publication Date: 2013-04-24
HUAWEI TECH CO LTD
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a query planning method and device, aiming to solve the problem that the actual cost of execution is not necessarily the smallest when using the "best execution plan" determined by the existing query planning method to query and obtain query results

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
  • Inquiry planning method and device
  • Inquiry planning method and device
  • Inquiry planning method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0025] The query planning method in this embodiment can be implemented by using a query planning device, which can be implemented by means of hardware or software, and the query planning device can be integrated in a computer to implement the query planning method.

[0026] figure 1 It is a flow chart of Embodiment 1 of the query planning method of the present invention. The query plann...

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

An embodiment of the invention provides an inquiry planning method and device. The inquiry planning method includes receiving an inquiry request message; determining at least one inquiry path according to operation objects of the inquiry request message, wherein each inquiry path includes at least one inquiry operating step; determining execution costs of each inquiry path according to each inquiry path; determining the inquiry path with minimum execution cost to be the optimal inquiry path; selecting memories for executing the inquiry operating steps according to operational capability of the current memories and set rules; and assigning the optimal inquiry path to an executer, and scheduling the inquiry operating steps of the optimal inquiry path to each memory to perform execution. By means of the inquiry planning method and device, the memories determined during optimal inquiry path planning can be used for executing steps of the optimal inquiry path so as to acquire inquiry results, and actual minimum execution costs of the inquiry results acquired by the optimal inquiry path can be guaranteed.

Description

technical field [0001] Embodiments of the present invention relate to computer database technology, and in particular to a query planning method and device. Background technique [0002] When the client sends a query request to the master server of the database to query the data in the database, the master server determines the "best execution plan" for the query request through the "query planner". When planning”, usually according to the calculation cost, disk reading speed and other factors, the execution steps that can realize the query request and the ordering relationship between each operation step are determined first, and at least one “execution plan” is generated, and each “execution plan” constitutes the search space , the master server then estimates the cost of the "execution plan" in the search space, and determines the "execution plan" with the least cost as the "best execution plan" for the query request according to the cost estimation results. The query exe...

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 & AuthorityApplications(China)
IPC IPC(8): G06F17/30
Inventor秦君华
OwnerHUAWEI TECH CO LTD