| От | Tom Lane |
|---|---|
| Тема | Re: - Slow Query |
| Дата | |
| Msg-id | 13880.1246470771@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: - Slow Query (Scott Marlowe <scott.marlowe@gmail.com>) |
| Ответы |
Re: - Slow Query
|
| Список | pgsql-performance |
Scott Marlowe <scott.marlowe@gmail.com> writes:
> Sometimes putting a where clause portion into the on clause helps.
> like:
> select * from a left join b on (a.id=b.id) where a.somefield=2
> might run faster with
> select * from a left join b on (a.id=bid. and a.somefield=2);
> but it's hard to say.
Uh, those are not the same query ... they will give different results
for rows with a.somefield different from 2.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера