Unlock instant, AI-driven research and patent intelligence for your innovation.

A query method and query device

A query device and query method technology, applied in the database field, can solve the problems of wasting execution plan generation time, prolonging query response time, reducing query efficiency, etc., so as to improve query efficiency and throughput, improve efficiency and throughput, reduce The effect of a lot of repeated calculations

Active Publication Date: 2021-02-23
HUAWEI TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if the query changes, the entire integrated execution plan needs to be regenerated. The integrated execution plan is a static structure, and its execution cannot be split. Each execution of the integrated execution plan is equivalent to executing all the included queries once.
[0004] The large-scale concurrent query method shown in the prior art is suitable for solidified query scenarios, but in practical applications, the query will change frequently, and as long as one of the multiple queries is changed, the integrated execution plan will be changed as a whole. Change, which wastes a lot of execution plan generation time, thus prolonging the query response time and reducing query efficiency

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 query method and query device
  • A query method and query device
  • A query method and query device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0129] In order to better understand the embodiments of the present invention, the following firstly describes the scenarios to which the embodiments of the present invention are applied.

[0130] The query method shown in the embodiment of the present invention is applied to an application scenario of large-scale concurrent query.

[0131] Specifically, the application scenarios of large-scale concurrent query can be the query of college entrance examination results, lottery results query, and ad hoc query of bank database systems.

[0132] It should be clear that the example of the application scenario of large-scale concurrent query in this embodiment is an optional example and does not make a limitation.

[0133] The characteristics of large-scale concurrent queries are:

[0134] 1. After the data is prepared for a period of time, it is entered into the query device. The query device runs a database system. When the query starts, the database system provides data query se...

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 embodiment of the present invention discloses a query method and a query device. The method can determine N execution plans corresponding to each of the N query requests according to the received N query requests, and determine at least Two identical first sub-plans, generating a first sub-query result corresponding to any first sub-plan in the at least two identical first sub-plans, and generating a result corresponding to the query according to the N query requests In the process of query results corresponding to each of the N query requests, all the same first sub-plans reuse a first sub-query result corresponding to any of the first sub-plans. It can be seen that, Using the query method shown in this embodiment can reduce a large number of repeated calculations, save the resources of the database system, and improve the query efficiency and throughput of the database system in the application scenario of large-scale concurrent query.

Description

technical field [0001] The invention relates to database technology, in particular to a query method and a query device capable of realizing large-scale concurrent query. Background technique [0002] Large-scale concurrent query is an important database application scenario in the era of big data, and it is also an important criterion for testing database capabilities. Large-scale concurrent queries will consume a large amount of database system resources in a short period of time and put a lot of pressure on the database system. In order to ensure that users can quickly obtain query results, the query response time must be controlled within the tolerance range. The application scenario of large-scale concurrent queries will cause a sharp increase in database pressure in a short period of time, but the duration of the peak period is short. [0003] A large-scale concurrent query method is provided in the prior art, multiple queries are compiled together, that is, figure 1...

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/2453G06F16/2455
CPCG06F16/24552G06F16/24532G06F16/2454G06F16/24539G06F16/24542
Inventor 邱雷李茂增黄海燕
Owner HUAWEI TECH CO LTD