pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kiswono Prayogo <kiswono@gmail.com>
To: fida aljounaidi <fida.aljounaidi@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to increase postgresql performance
Date: Wed, 3 Feb 2010 06:34:07 +0700
Message-ID: <99024f5f1002021534h7e7a04e4vc865c90b012aef6b@mail.gmail.com> (raw)
In-Reply-To: <ece0a951002020251j4010acfh673a902929c39b5f@mail.gmail.com>
References: <ece0a951002020251j4010acfh673a902929c39b5f@mail.gmail.com>

USE LEFT/JOIN instead of WHERE IN possibly would improve the performance..


On Tue, Feb 2, 2010 at 5:51 PM, fida aljounaidi
<fida.aljounaidi@gmail.com> wrote:
> Hi
>
> I have an sql query which takes 20 seconds to be executed.
>
> this sql query contain more than 870 id under the select where in ()
> condition.
>
> So , it is not a large row result but a big list of conditions to be
> crossed.
>
> I'm using postgresql 8.4.
>
> Thanks for help
>
>
>



-- 
Regards,
Kiswono P
GB



view thread (5+ messages)  latest in thread

Message-ID: <99024f5f1002021534h7e7a04e4vc865c90b012aef6b@mail.gmail.com>
Permalink:  ../99024f5f1002021534h7e7a04e4vc865c90b012aef6b@mail.gmail.com/
Also on:    postgresql.org/message-id/99024f5f1002021534h7e7a04e4vc865c90b012aef6b@mail.gmail.com

 · 

reply

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-admin@postgresql.org
  Cc: kiswono@gmail.com, fida.aljounaidi@gmail.com
  Subject: Re: How to increase postgresql performance
  In-Reply-To: <99024f5f1002021534h7e7a04e4vc865c90b012aef6b@mail.gmail.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