Re: nuderstanding 'explain analyse'

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: nuderstanding 'explain analyse'
Дата
Msg-id 200411162207.50341.josh@agliodbs.com
обсуждение исходный текст
Ответ на nuderstanding 'explain analyse'  (Alexandre Leclerc <alexandre.leclerc@gmail.com>)
Список pgsql-performance
Alexandre,

> If the plans for both queries are exactly the same, should I assume
> that the cost will also be the same?

Nope.   A seq scan over 1,000,000,000 rows is going to cost a LOT more than a
seq scan over 1000 rows, even though it's the same plan.

When you have the data sorted out, post explain analyzes and we'll take a shot
at it.

--
Josh Berkus
Aglio Database Solutions
San Francisco

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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Table Partitions: To Inherit Or Not To Inherit
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: query plan question