A greenplum-based quick sort query method and system
A quick sorting and query method technology, applied in the field of big data query, can solve the problems of scarce documents, complex structure, large amount of source code, etc., and achieve the effect of reducing partition data reading and improving performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0086] Assume that there is a partition table test, which has 2 columns, the column names are id and create_date, and the key value of the partition with create_date is divided into 365 partitions according to the time from January 1, 2017 to December 31, 2017. 30 million records are inserted into the table, which are distributed in 365 partitions, and the number of records falling on this partition on January 1, 2017 is 10,000.
[0087] When the present invention executes the following SQL statements, the optimized query process will replace the original process:
[0088] select * from test order by create_date limit 10;
[0089] The comparison of the specific processing flow is as follows: figure 1 As shown, the present invention discloses a fast query method based on the Order by of the Greenplum partition key value plus Limit, which includes the following steps:
[0090] Step 1. The user submits a SQL request to the Master node, and the Master node generates an executio...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


