Re: optimizer picks smaller table to drive nested loops?

Поиск
Список
Период
Сортировка
От Randy Neumann
Тема Re: optimizer picks smaller table to drive nested loops?
Дата
Msg-id 200307072115.PAA52502@mail.simn.com
обсуждение исходный текст
Ответ на optimizer picks smaller table to drive nested loops?  (Greg Stark <gsstark@mit.edu>)
Список pgsql-performance
On Monday 07 July 2003 12:22 pm, you wrote:

> loops=1) ->  Seq Scan on region  (cost=0.00..2813.00 rows=2767 width=104)
> (actual time=0.03..123.44 rows=2767 loops=2) Total runtime: 566.24 msec
> (9 rows)
>
> (I'm also a bit puzzled why the optimizer is calculating that 2,813 * 2 =
> 5,534)

You should read it 2767 (rows) * 2 = 5534 (rows)
2813.00 is part of the cost.

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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: PostgreSQL vs. MySQL
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: PostgreSQL vs. MySQL