From: nolan@celery.tssi.com
To: swampler@noao.edu
Cc: pgsql-performance@postgresql.org
Subject: Re: Improving a simple query?
Date: Sun, 13 Jul 2003 14:54:40 -0500 (CDT)
Message-ID: <20030713195440.15746.qmail@celery.tssi.com> (raw)
In-Reply-To: <1058119515.23012.114.camel@weaver.tuc.noao.edu>
> select * from attributes_table where id in (select id from
> attributes where (name='obsid') and (value='oid00066'));
Can you convert it into a join? 'where in' clauses tend to slow pgsql
down.
--
Mike Nolan
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: nolan@celery.tssi.com, swampler@noao.edu
Subject: Re: Improving a simple query?
In-Reply-To: <20030713195440.15746.qmail@celery.tssi.com>
References: <1058119515.23012.114.camel@weaver.tuc.noao.edu> <20030713195440.15746.qmail@celery.tssi.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