| От | Kevin Grittner |
|---|---|
| Тема | Re: [PERFORM] temporary indexes |
| Дата | |
| Msg-id | 44056AE5.EE98.0025.0@wicourts.gov обсуждение исходный текст |
| Ответ на | Re: [PERFORM] temporary indexes ("Jim C. Nasby" <jnasby@pervasive.com>) |
| Список | pgsql-hackers |
>>> On Tue, Feb 28, 2006 at 3:02 pm, in message <20060228210232.GW82012@pervasive.com>, "Jim C. Nasby" <jnasby@pervasive.com> wrote: > > Maybe it's just the way my twisted mind thinks, but I generally prefer > using a JOIN when possible... Definitely. But sometimes you don't want one row from a table for each qualifying row in another table, you want one row from the table if one or more qualifying rows exist in the other table. Those are the cases in question here. Don't suggest that I just let the duplicates happen and use DISTINCT, that is much more prone to logic errors in complex queries, and typically optimizes worse. -Kevin
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера