Re: postgres 8 performance

From: Chris Mair <list(at)1006(dot)org>
To: Paramveer(dot)Singh(at)trilogy(dot)com
Cc: pgSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: postgres 8 performance
Date: 2004-09-07 10:27:59
Message-ID: 1094552879.5330.41.camel@dell
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> I can't figure out what the problem is.
> The app using jdbc and the postmaster instance were running on the same
> comp so I can't believe that communication would make that big a hit on
> performance.

It's the query parsing that takes a lot of time.
You might want to look at prepared statements:
http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html

Also set autocommit to off and do a hundert or so inserts inside
one transaction, not one transaction for each insert.

Bye, Chris.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Garamond 2004-09-07 10:28:44 restricting non superuser from accessing other databases
Previous Message Pierre-Frédéric Caillaud 2004-09-07 10:22:39 Re: postgres 8 performance