Re: PREPARE / EXECUTE

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: PREPARE / EXECUTE
Дата
Msg-id 20021023162042.GA7032@wolff.to
обсуждение исходный текст
Ответ на Re: PREPARE / EXECUTE  (Hans-Jürgen Schönig <postgres@cybertec.at>)
Ответы Re: PREPARE / EXECUTE  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Oct 23, 2002 at 18:04:01 +0200, Hans-Jürgen Schönig <postgres@cybertec.at> wrote:
> 
> An example:
> I have a join across 10 tables  + 2 subselects across 4 tables
> on the machine I use for testing:
>    planner: 12 seconds
>    executor: 1 second
> 
> The application will stay the same forever.
> I could be 10 times faster if there was a way to load the execution plan 
> into the backend.

One option you have is to explicitly give the join order. You can look at
explain to see what order the joins are done in and then rewrite the sql
to force them to be done in that order. This should keep things simple
for the planner.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Nicolae Mihalache
Дата:
Сообщение: Re: crashes with postgresql 7.2.1 on IRIX 6.5
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PREPARE / EXECUTE