Re: Performance Optimization for Dummies 2 - the SQL

Поиск
Список
Период
Сортировка
От Carlo Stonebanks
Тема Re: Performance Optimization for Dummies 2 - the SQL
Дата
Msg-id eg3bqm$2dq$1@news.hub.org
обсуждение исходный текст
Ответ на Performance Optimization for Dummies 2 - the SQL  ("Carlo Stonebanks" <stonec.register@sympatico.ca>)
Ответы Re: Performance Optimization for Dummies 2 - the SQL  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Just to clarify: if I expect to join two tables that I expect to benfit from
indexed scans, I should create indexes on the joined columns on BOTH sides?

Carlo


"Tom Lane" <tgl@sss.pgh.pa.us> wrote in message
news:12239.1160054675@sss.pgh.pa.us...
> "Carlo Stonebanks" <stonec.register@sympatico.ca> writes:
>> I didn't create an index on facility_address.address_id because I
>> expected
>> joins to go in the other direction (from facility_address to address).
>
> Well, that's your problem right there ...
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>               http://www.postgresql.org/docs/faq
>



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

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: Performance Optimization for Dummies 2 - the SQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Performance Optimization for Dummies 2 - the SQL