Re: Connections performance is reduced - Mailing list pgsql-jdbc

From Andrew Sullivan
Subject Re: Connections performance is reduced
Date
Msg-id 20030521203222.GX17292@libertyrms.info
Whole thread Raw
In response to Re: Connections performance is reduced  (Barry Lind <blind@xythos.com>)
List pgsql-jdbc
On Thu, May 15, 2003 at 08:56:03AM -0700, Barry Lind wrote:
> to run 'vacuum verbose' and look at how many records are actually
> vacuumed relative to when other connections are opened/closed.  I don't
> know the internals of the vacuum process very well, so I could be
> completely wrong here as well.

You're not wrong; you're right on.

This is a very common problem with long-running transactions.  A
search of the archives on something like "long running transaction"
will turn up a bunch of info about this.

The short answer to Antonio's question, though, is that long-running
transactions in Postgres are a real "gotcha".  You need to design to
avoid them.  This is especially true with JDBC, ODBC, and the rest
who use the same strategy for auto commit.

A

--
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110


pgsql-jdbc by date:

Previous
From: Barry Lind
Date:
Subject: Re: [Bug] ResultSet#getMetaData() returns null
Next
From: Fernando Nasser
Date:
Subject: JDBC: Better initial capacity for StringBuffers reduces memory usage