Re: Benchmark two separate SELECTs versus one LEFT JOIN - Mailing list pgsql-performance

From Josh Berkus
Subject Re: Benchmark two separate SELECTs versus one LEFT JOIN
Date
Msg-id 200501060857.56812.josh@agliodbs.com
Whole thread Raw
In response to Benchmark two separate SELECTs versus one LEFT JOIN  (Miles Keaton <mileskeaton@gmail.com>)
List 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

pgsql-performance by date:

Previous
From: amrit@health2.moph.go.th
Date:
Subject: Re: Low Performance for big hospital server ..
Next
From: Josh Berkus
Date:
Subject: Re: Low Performance for big hospital server ..