Method and device for storing query results, computing device

A technology of query results and query tables, applied in the database field, can solve problems such as low query efficiency and achieve the effect of improving efficiency

Active Publication Date: 2020-03-10
HUAWEI TECH CO LTD
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0025] Embodiments of the present invention provide a method, device, and computing device for storing query results, which can avoid the problem of low query efficiency when performing associated queries 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
  • Method and device for storing query results, computing device
  • Method and device for storing query results, computing device
  • Method and device for storing query results, computing device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0055] It should be understood that the technical solutions of the embodiments of the present invention can be applied to various database systems, for example, relational database management systems (RDBMS), non-relational (NoSQL) database systems, and massively parallel processing databases (Massively Parallel Processing Database, MPP-DB), etc., which are not limited in the embodiment of the present invention.

[0056] It should also be under...

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

Provided are a method and apparatus for storing a query result. The method comprises: determining multiple query tables corresponding to a first query request, wherein the first query request is used for requesting to perform a correlated subquery on the multiple query tables (S110); determining a target query table from the multiple query tables, wherein the target query table is a fact table of at least one query table in the multiple query tables except the target query table, and a fact table of the target query table does not exist in the multiple query tables (S120); determining a major key of a first table according to the target query table, wherein the first table is used for storing a query result corresponding to the first query request (S130); and storing the query result into the first table according to the major key of the first table (S140). The method and apparatus for storing a query result can avoid the problem in the prior art that the query efficiency is low when a correlated subquery is performed on the first tabled, thus improving the correlated subquery efficiency.

Description

Technical field [0001] The present invention relates to the field of databases, and more specifically, to a method and device for storing query results, and computing equipment. Background technique [0002] Transaction Processing Performance Council Benchmark TM H, TPC-H) is mainly used to simulate the application environment of real business, including simulating dynamic query of real business transaction database, as a reference for decision support and database application system. [0003] TPC-H mainly involves the following concepts: [0004] The fact table is used to store at least one fact record. Each fact record corresponds to a row in the fact table, and includes a key value column and a measure value column. The value in the key value column corresponds to the dimension of the fact record, for example, product origin , Commodity price, commodity quantity, transaction date, commodity type, commodity name, etc.; the value in the metric column corresponds to the subject cont...

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
IPC IPC(8): G06F16/2455
CPCG06F16/00
Inventor 张军林晓勇
Owner HUAWEI TECH CO LTD
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