| От | Chris |
|---|---|
| Тема | Re: faster SELECT |
| Дата | |
| Msg-id | 1078742421.5061.37.camel@dell обсуждение исходный текст |
| Ответ на | faster SELECT (sferriol <sylvain.ferriol@imag.fr>) |
| Ответы |
Re: faster SELECT
|
| Список | pgsql-general |
> in a 'SELECT', does postgres read the 'WHERE' condition from left to right. PostgreSQL (SQL in general?) does NOT define evaluation order (unlike programming languages like C). > 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 ? Depends on the problem. In theory the optimizer should find the best evaluation order after analyzing a and b. Bye, Chris.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера