pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ian Lea <ian.lea@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: How to increase postgresql performance
Date: Tue, 2 Feb 2010 11:00:22 +0000
Message-ID: <8c4e68611002020300t37c78ef0jc6a0d211cd95b8ef@mail.gmail.com> (raw)
In-Reply-To: <20100202105641.GA5363@FlamingKaty.my.domain>
References: <ece0a951002020251j4010acfh673a902929c39b5f@mail.gmail.com>
	<20100202105641.GA5363@FlamingKaty.my.domain>

And maybe make sure that the id column is indexed, and see what
EXPLAIN says. http://wiki.postgresql.org/wiki/Using_EXPLAIN

--
Ian.


On Tue, Feb 2, 2010 at 10:56 AM, Bret S. Lambert <bret.lambert@gmail.com> wrote:
> On Tue, Feb 02, 2010 at 11:51:57AM +0100, fida aljounaidi 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.
>
> Add a column to the table which denotes the characteristic that those
> 870 ids share, and select based on that?
>
>>
>> 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
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>



view thread (5+ messages)  latest in thread

Message-ID: <8c4e68611002020300t37c78ef0jc6a0d211cd95b8ef@mail.gmail.com>
Permalink:  ../8c4e68611002020300t37c78ef0jc6a0d211cd95b8ef@mail.gmail.com/
Also on:    postgresql.org/message-id/8c4e68611002020300t37c78ef0jc6a0d211cd95b8ef@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: ian.lea@gmail.com
  Subject: Re: How to increase postgresql performance
  In-Reply-To: <8c4e68611002020300t37c78ef0jc6a0d211cd95b8ef@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