pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ramesh Reddy <rareddy@redhat.com>
To: pgsql-odbc@postgresql.org
Subject: Fetch Sizes and Blocks
Date: Thu, 16 Jun 2011 16:07:59 -0500
Message-ID: <1308258479.15712.29.camel@localhost.localdomain> (raw)

Hi,

I have been trying to read the code and understand how the results
fetching works in ODBC. It looks like by default, all tuples are
pre-fetched before they are returned to the client. Unless if you
specify

UseDeclareFetch=1
Fetch=1000

then it will use cursors to fetch 1000 rows at a time. 

My question is at network layer, does the driver fetch individual row at
a time from server (for pre-fetch or cursor), or does it use some kind
"bulk" fetch so that it minimizes the network traffic? I also did not
see "Fetch" value coming across as connection string at server side,
when it is set.

PS: we wrote a PG wire protocol over http://teiid.org and want improve
the performance.

Thank you.

Ramesh..






Message-ID: <1308258479.15712.29.camel@localhost.localdomain>
Permalink:  ../1308258479.15712.29.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1308258479.15712.29.camel@localhost.localdomain

 · 

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-odbc@postgresql.org
  Cc: rareddy@redhat.com
  Subject: Re: Fetch Sizes and Blocks
  In-Reply-To: <1308258479.15712.29.camel@localhost.localdomain>
  References: <1308258479.15712.29.camel@localhost.localdomain>

* 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