Algorithm-based distributed database query optimization method

A query optimization and database technology, which is applied in the field of distributed database systems, can solve problems such as inconsistent database query response time and different database structures, and achieve the effects of reducing system overhead, saving hardware and network resources, and improving query efficiency

Inactive Publication Date: 2018-08-14
山东汇贸电子口岸有限公司
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, while distributed databases solve the problems of traditional physical central databases, there are also problems such as inconsistent query response times and different (heterogeneous) database structures.

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
  • Algorithm-based distributed database query optimization method
  • Algorithm-based distributed database query optimization method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] Attached below figure 1 , 2 , an algorithm-based distributed database query optimization method of the present invention will be described in detail below.

[0036] as attached figure 1 As shown, a kind of algorithm-based query optimization method of distributed database of the present invention adds the steps of divide and conquer algorithm and greedy algorithm in the distributed database query optimization process, and its implementation process is as follows;

[0037] 1. In the overall query, adopt the divide and conquer algorithm design

[0038] as attached figure 1 As shown, when designing the divide-and-conquer algorithm, the steps are as follows:

[0039] 1.1) Split a query statement into several query statements for different databases (MYSQL, Oracle);

[0040] 1.2) Query part of the qualified data in different databases of the distributed database; (determine the total query amount of each database according to the total amount of data)

[0041] 1.3) Orga...

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 provides an algorithm-based distributed database query optimization method, and belongs to the field of distributed database systems. According to the method, the steps of a divide-and-conquer algorithm and a greedy algorithm are added in a distributed database query optimization process. The method is implemented by the following steps of 1) in an overall process of query, adoptingthe divide-and-conquer algorithm for design; and 2) in a specific implementation process of the query, adopting the query graph-based greedy algorithm. The distributed database query optimization is performed by taking an executive sequence of operations, an access method of relationships, connection operation of operation execution and a data flow sequence among different sites as entry points through mainly utilizing the advantages of the greedy algorithm and the divide-and-conquer algorithm. Through the optimization of the algorithms, a few unnecessary system overheads are reduced, large-amount hardware and network resources are saved, the response speed is increased, the system compatibility and stability are improved to a certain extent, and the analysis and execution efficiency of multi-time query are improved.

Description

technical field [0001] The invention relates to the field of distributed database systems, in particular to an algorithm-based query optimization method for distributed databases. Background technique [0002] With the development and popularization of big data technology, there are higher and higher requirements for data storage methods and query technologies. The volume of databases is getting larger and larger, and the structure is becoming more and more complex. In terms of nature, the traditional physical center database organization has gradually failed to meet the current needs, and distributed databases have emerged as the times require. [0003] Distributed database is a physically dispersed and logically centralized database system, with physical distribution of data, data logic, and site autonomy. Distributed query technology mainly translates query requests submitted by users into local query requests that can be recognized by several relevant nodes, and summari...

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/2453G06F16/27
Inventor王正沛
Owner山东汇贸电子口岸有限公司