pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sanjay tumula <stumula@comcast.net>
To: pgsql-admin@postgresql.org
Subject: performance problem
Date: Fri, 15 Apr 2005 10:24:52 -0400
Message-ID: <425FCEB4.3050802@comcast.net> (raw)

Ruud,

thanx for your reply.

I am narrowing down on the problem...found that Suse 9.2 has a lot of 
memory related problems.

reverted back to 9.1 and rebuilding the app..will post an update.

you suggestion will not work for me though...i need to check existing 
records and create new records..which cannot be done on one table. 
unless you are going thru hoops and doing a lot of text processing....at 
which point why do you need a database :-)

also here is something interesting that i found regarding IN vs = on a 
btree index.

select col1, col2
from table1
where col1 in ( 1,2,3)
;

this comes right back

select col1, col2
from table2
where col1 = 1
;

comes right back.

select col1,col2
from table2
where col1
IN
(
 select col1 from table2
where col1 between 1 and 2
)
;

this takes a while....

which tells me IN is still not optimized..or am i missing something?

lastly..please post to the forum and not directly to my email....so the 
community can see the 'whole' picture.

thanx
Sanjay



view thread (37+ messages)  latest in thread

Message-ID: <425FCEB4.3050802@comcast.net>
Permalink:  ../425FCEB4.3050802@comcast.net/
Also on:    postgresql.org/message-id/425FCEB4.3050802@comcast.net

 · 

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 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-admin@postgresql.org
  Cc: stumula@comcast.net
  Subject: Re: performance problem
  In-Reply-To: <425FCEB4.3050802@comcast.net>
  References: <425FCEB4.3050802@comcast.net>

* 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