pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Cristina Surroca <cris@dmcid.net>
To: pgsql-general@postgresql.org
To: pgsql-admin@postgresql.org
Subject: Trying to Tunning DB
Date: Sat, 5 Apr 2003 16:01:24 +0200
Message-ID: <003201c2fb7b$d982eaa0$5e31393e@cris> (raw)

Hi,
 

    I'm doing a project and I've have some problems.

    My table has (ID, atr1,..., atn), but there isn't any primary key because of the specifications, it's very similar to a Data warehouse, where every event is stored. It hasn't any delete, only inserts (more than 10^7) and many updates.

    The thing is that it takes too much time in execute. (In my case, before each update I've to do select to find which row I have to modify, and I suppose it does a table scan. To improve it, I've thought to use a Btree for ID column).

    I use JDBC. To make it works better, I use:

  a..  Prepared Statements, 
  b.. setAutocommit(false), ( in my case I don't need transactions). 
  c.. I'm been reading PostgreSQL mailing list archive to try to discover other kinds of "tune", or how to improve it. 
  d.. I've also read FAQ and I've found "3.6) How do I tune the data base engine for better performance".  
    But in my case, would you think vacuum and analyze are good options? Can I do everything else? Can I  also disable the catalog? 



Thanks a lot



yours,





Cris..

view thread (2+ messages)  latest in thread

Message-ID: <003201c2fb7b$d982eaa0$5e31393e@cris>
Permalink:  ../003201c2fb7b$d982eaa0$5e31393e@cris/
Also on:    postgresql.org/message-id/003201c2fb7b$d982eaa0$5e31393e@cris

 · 

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: cris@dmcid.net, pgsql-general@postgresql.org
  Subject: Re: Trying to Tunning DB
  In-Reply-To: <003201c2fb7b$d982eaa0$5e31393e@cris>
  References: <003201c2fb7b$d982eaa0$5e31393e@cris>

* 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