Method, terminal and medium for predicate pushdown in sql connection operation
An operation and predicate technology, applied in the database field, can solve problems such as insufficient memory and lack of high concurrent query, and achieve the effect of improving data filtering ability and computing efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] This embodiment provides a method for pushing down predicates in SQL connection operations, such as figure 1 shown, including the following steps:
[0035] S1. Hash join the fact table and the dimension table, generate a Hash table according to the dimension table, and generate a fact table histogram according to the fact table; the Hash table includes several key values.
[0036] S2, N predicate histogram areas obtained according to the Hash table and the histogram of the fact table, where N is a positive integer;
[0037] Specifically, S21, performing Hash sorting on the key values in the Hash table to generate a sorted list;
[0038] For example, the sorted list is (90,91,92,93,94,95,96,97,98,99,100)
[0039] S22. Obtain M histogram areas of the sorted list according to the sorted list;
[0040] For example, according to the sorted list, 9 histogram areas are obtained, namely the histogram area of 90 to 91, the histogram area of 91 to 92, the histogram area ...
Embodiment 2
[0051] This embodiment provides a terminal, including a processor and a memory connected to the processor, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call The program instructions execute the predicate push-down method in the SQL connection operation described in Embodiment 1, such as figure 1 shown, including the following steps:
[0052] S1. Hash join the fact table and the dimension table, generate a Hash table according to the dimension table, and generate a fact table histogram according to the fact table; the Hash table includes several key values.
[0053] S2, N predicate histogram areas obtained according to the Hash table and the histogram of the fact table, where N is a positive integer;
[0054] Specifically, S21, performing Hash sorting on the key values in the Hash table to generate a sorted list;
[0055] For example, the sorted list is (90,91,92,93,94,95,96,97...
Embodiment 3
[0070] This embodiment provides a computer-readable storage medium, the computer storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the first embodiment. The predicate pushdown method in the SQL connection operation, such as figure 1 shown, including the following steps:
[0071] S1. Hash join the fact table and the dimension table, generate a Hash table according to the dimension table, and generate a fact table histogram according to the fact table; the Hash table includes several key values.
[0072] S2, N predicate histogram areas obtained according to the Hash table and the histogram of the fact table, where N is a positive integer;
[0073] Specifically, S21, performing Hash sorting on the key values in the Hash table to generate a sorted list;
[0074] For example, the sorted list is (90,91,92,93,94,95,96,97,98,99,100)
[0075] S22. Obtai...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com