pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Niels Kristian Schjødt <nielskristian@autouncle.com>
Cc: Julien Cigar <jcigar@ulb.ac.be>
Cc: pgsql-performance@postgresql.org
Subject: Re: Optimize SELECT * from table WHERE foreign_key_id IN (key1,key2,key3,key4...)
Date: Tue, 05 Mar 2013 16:07:21 -0800
Message-ID: <513688B9.5080504@commandprompt.com> (raw)
In-Reply-To: <653B0909-A122-44B5-B2A7-A8A524963AB6@autouncle.com>
References: <DC8BDA57-E91E-4E82-A83C-5217D77B02FF@autouncle.com>
	<513600A4.7090602@ulb.ac.be>
	<653B0909-A122-44B5-B2A7-A8A524963AB6@autouncle.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>


On 03/05/2013 03:51 PM, Niels Kristian Schjødt wrote:

>> 3ms isn't slow
>>
> Sorry, it's 3323ms!
>
>>> Can I do anything to optimize that query or maybe the index or something?
>>
>> your index is already used
>
> Okay this leaves me with - "get better hardware" or?

What does explain analyze say versus just explain.

JD
-- 
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Support, Training, Professional Services and Development
High Availability, Oracle Conversion, Postgres-XC
@cmdpromptinc - 509-416-6579


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (6+ messages)  latest in thread

Message-ID: <513688B9.5080504@commandprompt.com>
Permalink:  ../513688B9.5080504@commandprompt.com/
Also on:    postgresql.org/message-id/513688B9.5080504@commandprompt.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-performance@postgresql.org
  Cc: jd@commandprompt.com, nielskristian@autouncle.com, jcigar@ulb.ac.be
  Subject: Re: Optimize SELECT * from table WHERE foreign_key_id IN (key1,key2,key3,key4...)
  In-Reply-To: <513688B9.5080504@commandprompt.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