Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
57a84ca4
Commit
57a84ca4
authored
19 years ago
by
Neil Conway
Browse files
Options
Downloads
Patches
Plain Diff
Minor improvements to GEQO documentation.
parent
b42f3073
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/geqo.sgml
+17
-21
17 additions, 21 deletions
doc/src/sgml/geqo.sgml
with
17 additions
and
21 deletions
doc/src/sgml/geqo.sgml
+
17
−
21
View file @
57a84ca4
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/geqo.sgml,v 1.3
4
200
5/11/07 17:36:44 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/geqo.sgml,v 1.3
5
200
6/01/22 03:56:58 neilc
Exp $
Genetic Optimizer
Genetic Optimizer
-->
-->
...
@@ -46,8 +46,8 @@ Genetic Optimizer
...
@@ -46,8 +46,8 @@ Genetic Optimizer
<para>
<para>
Among all relational operators the most difficult one to process
Among all relational operators the most difficult one to process
and optimize is the <firstterm>join</firstterm>. The number of
and optimize is the <firstterm>join</firstterm>. The number of
alternative plans to answer a query
grows exponentially with the
possible query plans
grows exponentially with the
number of joins in
cluded in it
. Further optimization effort is
number of joins in
the query
. Further optimization effort is
caused by the support of a variety of <firstterm>join
caused by the support of a variety of <firstterm>join
methods</firstterm> (e.g., nested loop, hash join, merge join in
methods</firstterm> (e.g., nested loop, hash join, merge join in
<productname>PostgreSQL</productname>) to process individual joins
<productname>PostgreSQL</productname>) to process individual joins
...
@@ -57,34 +57,30 @@ Genetic Optimizer
...
@@ -57,34 +57,30 @@ Genetic Optimizer
</para>
</para>
<para>
<para>
The current <productname>PostgreSQL</productname> optimizer
The normal <productname>PostgreSQL</productname> query optimizer
implementation performs a <firstterm>near-exhaustive
performs a <firstterm>near-exhaustive search</firstterm> over the
search</firstterm> over the space of alternative strategies. This
space of alternative strategies. This algorithm, first introduced
algorithm, first introduced in the <quote>System R</quote>
in IBM's System R database, produces a near-optimal join order,
database, produces a near-optimal join order, but can take an
but can take an enormous amount of time and memory space when the
enormous amount of time and memory space when the number of joins
number of joins in the query grows large. This makes the ordinary
in the query grows large. This makes the ordinary
<productname>PostgreSQL</productname> query optimizer
<productname>PostgreSQL</productname> query optimizer
inappropriate for queries that join a large number of tables.
inappropriate for queries that join a large number of tables.
</para>
</para>
<para>
<para>
The Institute of Automatic Control at the University of Mining and
The Institute of Automatic Control at the University of Mining and
Technology, in Freiberg, Germany, encountered the described problems as its
Technology, in Freiberg, Germany, encountered some problems when
folks wanted to take the <productname>PostgreSQL</productname> DBMS as the backend for a decision
it wanted to use <productname>PostgreSQL</productname> as the
support knowledge based system for the maintenance of an electrical
backend for a decision support knowledge based system for the
power grid. The DBMS needed to handle large join queries for the
maintenance of an electrical power grid. The DBMS needed to handle
inference machine of the knowledge based system.
large join queries for the inference machine of the knowledge
</para>
based system. The number of joins in these queries made using the
normal query optimizer infeasible.
<para>
Performance difficulties in exploring the space of possible query
plans created the demand for a new optimization technique to be developed.
</para>
</para>
<para>
<para>
In the following we describe the implementation of a
In the following we describe the implementation of a
<firstterm>
G
enetic
A
lgorithm</firstterm> to solve the join
<firstterm>
g
enetic
a
lgorithm</firstterm> to solve the join
ordering problem in a manner that is efficient for queries
ordering problem in a manner that is efficient for queries
involving large numbers of joins.
involving large numbers of joins.
</para>
</para>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment