Re: UPDATE with JOIN not using index

Поиск
Список
Период
Сортировка
От Arnaud Lesauvage
Тема Re: UPDATE with JOIN not using index
Дата
Msg-id 4B9FABE2.7000509@codata.eu
обсуждение исходный текст
Ответ на Re: UPDATE with JOIN not using index  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Le 16/03/2010 16:52, Tom Lane a écrit :
> Sometime in the future they might generate the same plan.  Right now the
> planner's ability to optimize sub-SELECTs is pretty limited, and so you
> typically get a nestloop-like plan even if some other join style would
> be faster.

OK, thanks for the clarification.
Should joins always be considered better than subselects then ?

I like the readability of subselects and I think I use them more often
than joins when I have the choice, so maybe I should check and change
all my queries ?

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: UPDATE with JOIN not using index
Следующее
От: Peter Schmidtke
Дата:
Сообщение: Re: reuse data in existing data directory