Optimizing table join ordering using graph theory prior to query optimization
Abstract
A method for improving the efficiency of queries in relational database management systems that use the exhaustive method of query optimization. The join structure of the query is examined prior to query optimization and tables are ordered according to graph theory. The tables in the FROM clause of the query are then reordered before query optimization. The access plan is thus developed from an already near-optimal table ordering. As a result, the number of table permutations examined during query optimization is pruned, the time to examining large numbers of table order permutations is avoided, and the optimization cost is reduced.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 47.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a relational database computer system including a data processor, a stored database and a plurality of database tables wherein one or more of the tables are retrieved by the processor by means of query commands performing a plurality of join operations on the tables using a WHERE clause and a FROM clause, a method for improving the query optimization comprising the steps of: a) examining the WHERE clause and finding all join conditions that are present; b) forming a chain of the join conditions; c) establishing a list of tables wherein: I) tables that are in the WHERE clause but not in
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗