From: Tomasz Myrta <jasiek@klaster.net>
To: pginfo <pginfo@t1.unisoftbg.com>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: Interest query plan
Date: Tue, 07 Oct 2003 19:11:36 +0200
Message-ID: <3F82F3C8.6090102@klaster.net> (raw)
In-Reply-To: <3F82DD93.4B3CB117@t1.unisoftbg.com>
References: <3F82D4FE.DD4E275B@t1.unisoftbg.com>
<3F82E734.8060003@klaster.net>
<3F82DD93.4B3CB117@t1.unisoftbg.com>
> I have also another good example for a slow left join work.
> Can I do it better?
> explain analyze select * from a_doc D join A_SKLAD S ON(D.IDS=S.IDS_DOC) join
> A_MED M ON(S.IDS_MED=M.IDS) where d
> .date_op >= 9600 and d.date_op <= 9700;
> -> Seq Scan on a_doc d (cost=0.00..13145.43 rows=11167
> width=1344) (actual time=0.22..1316.10 rows=9432 loops=1)
I wouldn't expect too much from query, which starts joining over 10k
rows and returns over 60000 rows. Do you really need such a big result?
Regards,
Tomasz Myrta
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-sql@postgresql.org
Cc: jasiek@klaster.net, pginfo@t1.unisoftbg.com
Subject: Re: Interest query plan
In-Reply-To: <3F82F3C8.6090102@klaster.net>
* 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