Re: Performance Optimization for Dummies 2 - the SQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Carlo Stonebanks" <stonec(dot)register(at)sympatico(dot)ca>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance Optimization for Dummies 2 - the SQL
Date: 2006-10-05 16:35:33
Message-ID: 21472.1160066133@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Carlo Stonebanks" <stonec(dot)register(at)sympatico(dot)ca> writes:
> 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?

Well, it all depends on the queries you plan to issue ... but for the
particular query shown here, the lack of that index is the performance
bottleneck.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Carlo Stonebanks 2006-10-05 17:46:59 Re: Performance Optimization for Dummies 2 - the SQL
Previous Message Carlo Stonebanks 2006-10-05 16:29:42 Re: Performance Optimization for Dummies 2 - the SQL