A method and system for cross-data source query dynamic optimization
By collecting and training SQL query log data, a predicate selectivity prediction model was generated, which solved the problem of inaccurate cost calculation for cross-data source join queries, optimized the execution plan, and improved query efficiency and resource utilization.
CN116775696BActive Publication Date: 2026-07-03BORRUI DATA TECH (BEIJING) CO LTD
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BORRUI DATA TECH (BEIJING) CO LTD
- Filing Date
- 2023-06-28
- Publication Date
- 2026-07-03
Smart Images

Figure CN116775696B_ABST
Abstract
The application discloses a kind of cross data source query dynamic optimization method and system, the method includes: in the query log retrieval SQL sentence in key word join, further identify and handle the join query sentence identified, generate the training set according to join condition and predicate information extracted from the join query sentence;Using the training set, the model is trained, and the predicate selectivity estimation model is obtained, and the predicate selectivity estimation is carried out for the given data table and predicate information;After receiving new query sentence, it is judged whether the new query sentence is cross-source join query statement, parse and extract the data table and predicate information of the new query statement, and input to the predicate selectivity estimation model to obtain the selectivity estimation parameter of all data tables;According to the selectivity estimation parameter, the data table corresponding to the new query statement is connected and sorted, and the optimal connection order is obtained, which greatly improves the query efficiency of cross data source join query.
Need to check novelty before this filing date? Find Prior Art