pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: romje@javaxpert.com
To: nilesh khode <nilesh_khode@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: DB Performance Tuning
Date: Tue, 5 Sep 2006 17:24:31 +0200 (CEST)
Message-ID: <14670.207.45.248.31.1157469871.squirrel@buggy.javaxpert.com> (raw)
In-Reply-To: <20060905150853.20091.qmail@web60521.mail.yahoo.com>
References: <20060905150853.20091.qmail@web60521.mail.yahoo.com>


On Tue, September 5, 2006 5:08 pm, nilesh khode wrote:
>   Hello,
>
>  I am working on database performace tuning on Postgresql 8.1 database
> build on Suse 10 Linux dedicated server. I am having 32 GB of RAM and 8
> CPUs.
>

nice machine :)
>
> I have made minimum recommended settings under postgresql.conf (i.e
> shared_buffer, work_mem, and effective cache_size also kernel.shmmax)
>
>   I have run SQL queries using pg-admin, the query execution + retrieval
> time is 80% reduced over existing server.
>   But same I tested with JDBC, the query requires more time as compared
> with existing server.
>



what 's the driver used ? do you use statement or preparedstatement ?
the time given is made after 1 query or the same query repeated x times
then dividing the whole time by x ?
have you tried to use jdbc proxy (p6spy for instance) to watch the query ?
to know where the time is spent (don't use it in production !!!)
>   Please help me out in this performance tuning.
>


HTH
Jerome
> Regards,
> Nilesh
>
>


-- 
Auteur cahiers du programmeur J2EE - Eyrolles 2003




view thread (3+ messages)  latest in thread

Message-ID: <14670.207.45.248.31.1157469871.squirrel@buggy.javaxpert.com>
Permalink:  ../14670.207.45.248.31.1157469871.squirrel@buggy.javaxpert.com/
Also on:    postgresql.org/message-id/14670.207.45.248.31.1157469871.squirrel@buggy.javaxpert.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: romje@javaxpert.com, nilesh_khode@yahoo.com
  Subject: Re: DB Performance Tuning
  In-Reply-To: <14670.207.45.248.31.1157469871.squirrel@buggy.javaxpert.com>
  References: <20060905150853.20091.qmail@web60521.mail.yahoo.com> <14670.207.45.248.31.1157469871.squirrel@buggy.javaxpert.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