From: Gerhard Dieringer <DieringG@eba-haus.de>
To: pgsql-sql@postgresql.org
Subject: Antw: [SQL] query with subquery abnormally slow?
Date: Tue, 02 Nov 1999 07:45:31 +0100
Message-ID: <s81e96a9.086@kopo001> (raw)
>>> Oskar Liljeblad <osk@hem.passagen.se> 01.11.1999 19.47 Uhr >>>
>>I'm doing a SELECT query with a subquery on a table with 12K rows
>>but it is very slow (10 seconds+). The query looks like this:
>>
>> select *
>> from items
>> where package in
>> (select package
>> from items
>> where ...blah...
>> group by package)
>> .....
I am sorry if I am still sleeping and don't see the problem, but what is the difference between this querry and the following:
select *
from items
where ...blah...
Gerhard
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: DieringG@eba-haus.de
Subject: Re: [SQL] query with subquery abnormally slow?
In-Reply-To: <s81e96a9.086@kopo001>
References: <s81e96a9.086@kopo001>
* 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