Skip site navigation (1) Skip section navigation (2)

Re: Optimising "in" queries

From: Michael Glaesemann <grzm(at)seespotcode(dot)net>
To: Russell Smith <mr-russ(at)pws(dot)com(dot)au>
Cc: Stephen Davies <scldad(at)sdc(dot)com(dot)au>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Optimising "in" queries
Date: 2007-08-22 13:25:26
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
On Aug 22, 2007, at 5:58 , Russell Smith wrote:

> Stephen Davies wrote:
>> select count(rdate),rdate from reading where sensor_id in  
>> (1137,1138,1139,1140) group by rdate order by rdate desc limit 1;
> It would have been helpful to see the table definition here.  I can  
> say up front that array processing in postgres is SLOW.

Um, what array processing are you seeing here? IN (a, b, b) is not an  
array construct.

Michael Glaesemann
grzm seespotcode net

In response to


pgsql-performance by date

Next:From: Dmitry PotapovDate: 2007-08-22 15:33:35
Subject: io storm on checkpoints, postgresql 8.2.4, linux
Previous:From: Stephen DaviesDate: 2007-08-22 12:08:56
Subject: Re: Optimising "in" queries

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group