Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
58.1. Query Handling as a Complex Optimization Problem
Prev UpChapter 58. Genetic Query OptimizerHome Next

58.1. Query Handling as a Complex Optimization Problem#

Among all relational operators the most difficult one to process and optimize is thejoin. The number of possible query plans grows exponentially with the number of joins in the query. Further optimization effort is caused by the support of a variety ofjoin methods (e.g., nested loop, hash join, merge join inPostgres Pro) to process individual joins and a diversity ofindexes (e.g., B-tree, hash, GiST and GIN inPostgres Pro) as access paths for relations.

The normalPostgres Pro query optimizer performs anear-exhaustive search over the space of alternative strategies. This algorithm, first introduced in IBM's System R database, produces a near-optimal join order, but can take an enormous amount of time and memory space when the number of joins in the query grows large. This makes the ordinaryPostgres Pro query optimizer inappropriate for queries that join a large number of tables.

The Institute of Automatic Control at the University of Mining and Technology, in Freiberg, Germany, encountered some problems when it wanted to usePostgreSQL as the backend for a decision support knowledge based system for the maintenance of an electrical power grid. The DBMS needed to handle large join queries for the inference machine of the knowledge based system. The number of joins in these queries made using the normal query optimizer infeasible.

In the following we describe the implementation of agenetic algorithm to solve the join ordering problem in a manner that is efficient for queries involving large numbers of joins.


Prev Up Next
Chapter 58. Genetic Query Optimizer Home 58.2. Genetic Algorithms
pdfepub
Go to Postgres Pro Standard 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp