Re: refreshRow is slow

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: "John T(dot) Dow" <john(at)johntdow(dot)com>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: refreshRow is slow
Date: 2010-01-16 01:23:33
Message-ID: 4B511515.6090809@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

John T. Dow wrote:

> Certainly that piece of code can be made more efficient. One query ought to be able to return all the primary keys.

It's not the PKs it is after (it's already worked those out earlier),
it's the column names to select to populate the rest of the resultset.

But yes, it could be more efficient. We'd need a static String[]
Field.getColumnNames(Connection,Field[]) method or similar.

-O

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message John T. Dow 2010-01-16 03:08:44 Re: refreshRow is slow
Previous Message Craig Ringer 2010-01-16 01:11:30 Re: COPY using Hibernate