Re: Slow query execution over high latency network

From: Clemens Eisserer <linuxhippy(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Slow query execution over high latency network
Date: 2011-02-21 21:08:32
Message-ID: AANLkTimEPm1YWBDKiSyG0Jgusqr1WrZ9KBJWHYfdZd4q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi Andrej,

Thanks a lot for taking a loot at the tcpdump data.

> I just had a brief glance over your tcpdump data ... are you sure
> hibernate isn't using a cursor to fetch each row individually?

Pretty sure, yes. I get the same performance when executing the
hibernate-generated query using JDBC,
even setting a large fetch-size doesn't improve the situation:

> st.setFetchSize(100);
> st.setFetchDirection(ResultSet.FETCH_FORWARD);

Could it be jdbc driver struggles with the huge number of columns (~500)?

Thanks, Clemens

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Robert Haas 2011-02-23 02:22:10 Re: Why we don't want hints Was: Slow count(*) again...
Previous Message Andrej 2011-02-20 17:03:11 Re: Slow query execution over high latency network