| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера