Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data query method, device and system based on OLAP system

A data query and data technology, applied in the computer field, can solve the problems of shortening data query time, reducing server overhead, and large server overhead, and achieving the effect of shortening data query time and reducing server overhead.

Active Publication Date: 2014-08-20
HUAWEI TECH CO LTD
View PDF5 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a data query method, device, and system based on an OLAP system to overcome the problems of long multi-threaded query time and high server overhead in the prior art, by partitioning the first data table and the second data table , and establish a connection mapping relationship. In the process of multi-thread query, each thread obtains and scans the first hash subtable through the connection mapping relationship, thereby obtaining data, effectively shortening the data query time and reducing server overhead.

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
  • Data query method, device and system based on OLAP system
  • Data query method, device and system based on OLAP system
  • Data query method, device and system based on OLAP system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0058] figure 1 It is a flow chart of the first embodiment of the data query method based on the OLAP system of the present invention. This scheme is mainly applied in the OLAP database system, and in the process of performing joint query on multiple data tables to obtain data, such as figure 1 As shown, the method of this embodiment may include:...

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 invention provides a data query method, device and system based on an OLAP system. The data query method includes the steps that a data query request sent by a user terminal is received, a first data table corresponding to first data table identification is partitioned logically to obtain at least two first partitions, and a corresponding connection mapping relation is built for each first partition; a second data table corresponding to second data table identification is partitioned logically to obtain at least two second partitions, a first foreign key value is obtained from each second partition, and the first foreign key values are within the boundary value range of the first partitions; the connection mapping relations are queried to obtain a first Hash subtable corresponding to the first foreign key values; the first Hash subtable is scanned to obtain corresponding data, and the data are returned to the user terminal. According to the data query method, through setting up the connection mapping relations, data query time is effectively shortened, and overhead of a server is reduced.

Description

technical field [0001] Embodiments of the present invention relate to computer technology, and in particular to a data query method, device and system based on an On-Line Analytical Processing (OLAP) system. Background technique [0002] As a typical application scenario of the database system, OLAP is mainly used to query data. In the process of querying data, it often involves joint query of multiple data tables. Tables need to be associated through connection operations. , a common join operation is a hash join. [0003] In the prior art, the method of data query using hash join is mainly as follows: the background server of the database system receives the data query message sent by the user, and according to the first data table identifier and the second data table identifier carried in the data query message, , perform a hash operation on the primary key of the first data table with a small number of rows, establish a shared hash table, and then perform a parallel sca...

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): G06F17/30
CPCG06F16/2255G06F16/24532G06F16/278G06F16/283
Inventor 张宇范旭张兵朱银聪王方舟
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products