pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: Antw: [SQL] query with subquery abnormally slow?
2+ messages / 2 participants
[nested] [flat]
* Re: Antw: [SQL] query with subquery abnormally slow?
@ 1999-11-02 00:42 omid omoomi <oomoomi@hotmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: omid omoomi @ 1999-11-02 00:42 UTC (permalink / raw)
To: pgsql-sql
Hello ,,,
don't you think that you should use a multiple row function ( such as sum()
or ... ) along with 'group by' clause in that query?
regards ,
omid omoomi
>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
>
>
>
> >>> 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
>
>
>
>************
>
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
^ permalink raw reply [nested|flat] 2+ messages in thread
* Antw: [SQL] query with subquery abnormally slow?
@ 1999-11-02 06:45 Gerhard Dieringer <DieringG@eba-haus.de>
0 siblings, 0 replies; 2+ messages in thread
From: Gerhard Dieringer @ 1999-11-02 06:45 UTC (permalink / raw)
To: pgsql-sql
>>> 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-11-02 06:45 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-11-02 00:42 Re: Antw: [SQL] query with subquery abnormally slow? omid omoomi <oomoomi@hotmail.com>
1999-11-02 06:45 Antw: [SQL] query with subquery abnormally slow? Gerhard Dieringer <DieringG@eba-haus.de>
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