From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org, Miles Keaton <mileskeaton@gmail.com>
Subject: Re: Benchmark two separate SELECTs versus one LEFT JOIN
Date: Thu, 6 Jan 2005 08:57:56 -0800
Message-ID: <200501060857.56812.josh@agliodbs.com> (raw)
In-Reply-To: <59b2d39b0501051831643e90f2@mail.gmail.com>
References: <59b2d39b0501051831643e90f2@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: josh@agliodbs.com, mileskeaton@gmail.com
Subject: Re: Benchmark two separate SELECTs versus one LEFT JOIN
In-Reply-To: <200501060857.56812.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox