"Mysterious" - Dynamic Programming X GEQO

From: tarcizioab(at)c3sl(dot)ufpr(dot)br
To: pgsql-performance(at)postgresql(dot)org
Subject: "Mysterious" - Dynamic Programming X GEQO
Date: 2008-10-21 15:40:19
Message-ID: 55663.200.17.202.126.1224603619.squirrel@webmail.inf.ufpr.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi!!!

I'm evaluating the performance of algorithms for optimization of queries.
I am comparing results between the algorithm of Dynamic Programming and
GEQO algorithm.

I use the base and queries provided by the benchmark OSDL DBT3 with scale
factor = 1. The queries were submitted randomly, I did the cleaning of
memory cache between tests (drop_caches) and restarting the database
postgres.

Stay surprise with the running time of the querie 11 of DBT3. These
results are an average of the "Total Runtime" after 20 executions:

Dynamic Programming Total runtime: 83.122,003 ms
Run-time optimizer algorithm (Dynamic Programming): 0,453 ms

GEQO Total runtime: 18.266,819 ms
Run-time optimizer algorithm (GEQO): 0,440 ms

The GEQO optimizer Run-time is a little faster, not affecting the final
result. In theory the dynamic programming algorithm to choose the best
plan, resulting in less time to run the query.

Who knows what is happening?

In annex the Query Plans and Query 11 of DBT3.

Thank's for attention.

Tarcizio Bini.

Attachment Content-Type Size
Query11.txt text/plain 834 bytes
QueryPlan11.txt text/plain 9.9 KB

Browse pgsql-performance by date

  From Date Subject
Next Message Guy Rouillier 2008-10-21 23:32:09 Re: Annoying Reply-To
Previous Message Peter Eisentraut 2008-10-21 15:39:46 Re: Annoying Reply-To