pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hannu Krosing <hannu@tm.ee>
To: Yonatan Goraly <ygoraly@sbcglobal.net>
Cc: pgsql-general@postgresql.org
Cc: pgsql-performance@postgresql.org
Subject: Re: [PERFORM] Slow performance with no apparent reason
Date: Sun, 26 Oct 2003 16:38:16 +0200
Message-ID: <1067179095.2604.3.camel@fuji.krosing.net> (raw)
In-Reply-To: <3F9AEA51.2070701@sbcglobal.net>
References: <3F9AEA51.2070701@sbcglobal.net>

Yonatan Goraly kirjutas P, 26.10.2003 kell 00:25:
> I am in the process of  adding PostgreSQL support for an application,
> in addition to Oracle and MS SQL.
> I am using PostgreSQL version 7.3.2, Red Hat 9.0 on Intel Pentium III
> board.
> 
> I have a query that generally looks like this:
> 
> SELECT t1.col1, t2.col1 FROM t1, t2 WHERE t1.x=t2.y AND t2.p='string'
> AND t2.q=1
> 
> This query is strikingly slow (about 100 sec when both t1 and t2 has
> about 1,200 records, compare with less than 4 sec with MS SQL and
> Oracle)

always send results of EXPLAIN ANALYZE if you ask for help on [PERFORM] 

knowing which indexes you have would also help.

and you should have run ANALYZE too.

-----------------
Hannu




view thread (6+ messages)

Message-ID: <1067179095.2604.3.camel@fuji.krosing.net>
Permalink:  ../1067179095.2604.3.camel@fuji.krosing.net/
Also on:    postgresql.org/message-id/1067179095.2604.3.camel@fuji.krosing.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: hannu@tm.ee, ygoraly@sbcglobal.net, pgsql-general@postgresql.org
  Subject: Re: [PERFORM] Slow performance with no apparent reason
  In-Reply-To: <1067179095.2604.3.camel@fuji.krosing.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