Re: Benchmark two separate SELECTs versus one LEFT JOIN

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-performance(at)postgresql(dot)org, Miles Keaton <mileskeaton(at)gmail(dot)com>
Subject: Re: Benchmark two separate SELECTs versus one LEFT JOIN
Date: 2005-01-06 16:57:56
Message-ID: 200501060857.56812.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Miles,

> I only have a laptop here so I can't really benchmark properly.
> I'm hoping maybe someone else has, or just knows which would be faster
> under high traffic/quantity.

Well, it's really a difference between round-trip time vs. the time required
to compute the join. If your database is setup correctly, the 2nd should be
faster.

However, it should be very easy to test ....

--
Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Josh Berkus 2005-01-06 17:06:55 Re: Low Performance for big hospital server ..
Previous Message amrit 2005-01-06 16:34:43 Re: Low Performance for big hospital server ..