Uncorrelated subquery optimization method and apparatus, and storage medium
Abstract
The embodiments of this application provide an uncorrelated subquery optimization method and apparatus, and a storage medium. The method includes determining whether there is an uncorrelated subquery statement in a target clause in a database query statement. In response to the determination that there is the uncorrelated subquery statement in the target clause in the database query statement, the method includes obtaining an estimated number of rows of an execution result set corresponding to the target clause; and determining whether the estimated number of rows is less than a preset threshold. In response to the determination that the estimated number of rows is less than a preset threshold, the method includes executing the uncorrelated subquery statement, and rewriting the target clause according to an execution result set of the uncorrelated subquery statement, to eliminate the uncorrelated subquery statement.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for optimizing an uncorrelated subquery, the method comprising: determining, by a computer device comprising a memory storing instructions and a processor in communication with the memory, whether there is an uncorrelated subquery statement in a target clause in a database query statement; and in response to the determination that there is the uncorrelated subquery statement in the target clause in the database query statement: obtaining, by the computer device, an estimated number of rows of an execution result set corresponding to the target clause by: collecting, by the computer de
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
References Cited — Backward Prior Art (13)
Non-Patent Literature (2)
- Chinese Office Action and concise translation regarding 2017104473440 dated Jan. 29, 2021,7 pages.
- International Search Report and concise translation for corresponding application PCT/CN2018/090610 filed on Jun. 11, 2018, dated Sep. 10, 2018, 9 pages.