pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shridhar Daithankar <shridhar@frodo.hserus.net>
To: Anderson Boechat Lopes <teouique@terra.com.br>
Cc: pgsql-performance@postgresql.org
Subject: Re: Why queries takes too much time to execute?
Date: Mon, 10 May 2004 19:51:47 +0530
Message-ID: <409F8FFB.1010708@frodo.hserus.net> (raw)
In-Reply-To: <00b901c43697$333ec5d0$5f00a8c0@suport01>
References: <00b901c43697$333ec5d0$5f00a8c0@suport01>

Anderson Boechat Lopes wrote:
>     Hi.
>  
>     I´m new here and i´m not sure if this is the right email to solve my 
> problem.
>  
>     Well, i have a very large database, with vary tables and very 
> registers. Every day, too many operations are perfomed in that DB, with 
> queries that insert, delete and update. Once a week some statistics are 
> collected using vacuum analyze.

i guess you need to run it much more frequently than that. Thought you haven't 
given actual size of data etc., once or twice per day should be much better.
>    
>     The problem is after a period of time (one month, i think), the 
> queries takes too much time to perform. A simple update can take 10 
> seconds or more to perform.

You need to vacuum full once in a while and setup FSM parameters correctly.
>  
>     If i make a backup, drop and recreate the DB, everything goes back 
> normal.
>  
>     Could anyone give me any guidance?

Check following for basic performance tuning

http://www.varlena.com/varlena/GeneralBits/Tidbits/perf.html
http://www.varlena.com/varlena/GeneralBits/Tidbits/annotated_conf_e.html

HTH

  Shridhar




view thread (6+ messages)  latest in thread

Message-ID: <409F8FFB.1010708@frodo.hserus.net>
Permalink:  ../409F8FFB.1010708@frodo.hserus.net/
Also on:    postgresql.org/message-id/409F8FFB.1010708@frodo.hserus.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: shridhar@frodo.hserus.net, teouique@terra.com.br
  Subject: Re: Why queries takes too much time to execute?
  In-Reply-To: <409F8FFB.1010708@frodo.hserus.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