Re: faster SELECT

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: faster SELECT
Дата
Msg-id 200403081027.15868.dev@archonet.com
обсуждение исходный текст
Ответ на faster SELECT  (sferriol <sylvain.ferriol@imag.fr>)
Список pgsql-general
On Monday 08 March 2004 09:41, sferriol wrote:
> hello
> in a 'SELECT', does postgres read the 'WHERE' condition from left to right.
>
> for example
> 1) select ... where a and b;
> 2) select ... where b and a;
>
> 1 and 2 will use the same cpu time or not ?

I really wouldn't worry about it, for two reasons.
1. The difference in timing is going to be negligible (probably not
measurable).
2. The developers might change their mind about evaluation order, in which
case you've wasted your time optimising.

--
  Richard Huxton
  Archonet Ltd

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

Предыдущее
От: Dexter Tad-y
Дата:
Сообщение: Re: faster SELECT
Следующее
От: Vladimir Drobny
Дата:
Сообщение: postmaster freeze