pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Manuel Trujillo <manueltrujillo@dorna.es>
Cc: pgsql-admin@postgresql.org
Subject: Re: problems with postgresql speed
Date: Mon, 3 Dec 2001 04:10:47 -0800 (PST)
Message-ID: <20011203040614.S90415-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <20011203101437.GA22573@dorna.es>

On Mon, 3 Dec 2001, Manuel Trujillo wrote:

> I've serious problems with the speed of my database.
> If I execute any query like this;
>
> SELECT d.gallery_id, e.subevent_id, d.result_type_id,
> d.result_type_name, e.language_id FROM ((SELECT b.gallery_id,
> b.element_id AS result_type_id, c.name AS result_type_name FROM
> gallery_element b, result_type c WHERE ((c.id = b.element_id) AND
> (b.element_type_id = 10))) d JOIN (SELECT b.gallery_id, b.element_id AS
> subevent_id, c.language_id FROM gallery_element b, view_subevent_info c
> WHERE ((c.subevent_id = b.element_id) AND (b.element_type_id = 9))) e ON
> ((d.gallery_id = e.gallery_id)));
>
> The result take a minute, or more, to show the results.
> The postgresql.conf I used is attached to this e-mail.
> The table "gallery_element" have 8644 rows, and it have got 25932
> registers.
> The machine has 512 Mb RAM and 1.4 PIV processor.

Have you run vacuum analyze recently on the database?
Can you send the schema for the tables/views involved and the
explain output?




view thread (7+ messages)  latest in thread

Message-ID: <20011203040614.S90415-100000@megazone23.bigpanda.com>
Permalink:  ../20011203040614.S90415-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20011203040614.S90415-100000@megazone23.bigpanda.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 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: sszabo@megazone23.bigpanda.com, manueltrujillo@dorna.es
  Subject: Re: problems with postgresql speed
  In-Reply-To: <20011203040614.S90415-100000@megazone23.bigpanda.com>
  References: <20011203101437.GA22573@dorna.es> <20011203040614.S90415-100000@megazone23.bigpanda.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