pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Arnaud Lesauvage <thewild@freesurf.fr>
To: Ludek Finstrle <luf@pzkagis.cz>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Improve ODBC Throughput ?
Date: Fri, 20 Oct 2006 10:52:34 +0200
Message-ID: <45388E52.6040800@freesurf.fr> (raw)
In-Reply-To: <20061020075457.GA24357@soptik.pzkagis.cz>
References: <OFF8DCA2BA.EFEE90F9-ON8525720C.0055BAE2-8525720C.0057540E@michelin.com>
	<453879DC.7010709@freesurf.fr>
	<20061020075457.GA24357@soptik.pzkagis.cz>

Ludek Finstrle a écrit :
>> >2.Declare Fetch
>> >In Access, you do not have this fine control. Some psqlODBC user have
>> >experimented with the DECLARE/FETCH option in the psqlODBC settngs.I am not
>> >entirely sure how Declare/Fetch works though, I have never used it.
>> 
>> My tables are linked with these options :
>> UseDeclareFetch=1
>> UseServerSidePrepare=1
>> Fetch=10000
> 
> UseDeclareFetch and UseServerSidePrepare are disjoint options.
> If I remember it the right way the UseServerSidePrepare disallow
> UseDeclareFetch. Please try UseServerSidePrepare=0 when you want
> using DeclareFetch.
> 
> Why you set Fetch so high? How many rows do you expect?
> The UseDeclareFetch declare the select statement as cursor (using
> declare statement) and then get the rows using fetch statement
> (see postgresql manual).
> I see no usage for UseDeclareFetch with so high Fetch.
> 
> The UseServerSidePrepare use prepare and execute statement (also
> see postgresql manual).

I thought that since memory consumption was not an issue, I 
could fetch a lot of rows at once. I read the ODBC 
documentation about that but not PostgreSQL's, but I'll 
correct this ASAP.

What is your advice in fact ?

UseDeclareFetch=0
UseServerSidePrepare=1

Or maybe

UseDeclareFetch=1
UseServerSidePrepare=0
Fetch=100


I might just try both in fact (don't have the time right 
now, maybe later today though).



view thread (20+ messages)  latest in thread

Message-ID: <45388E52.6040800@freesurf.fr>
Permalink:  ../45388E52.6040800@freesurf.fr/
Also on:    postgresql.org/message-id/45388E52.6040800@freesurf.fr

 · 

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: thewild@freesurf.fr, luf@pzkagis.cz
  Subject: Re: Improve ODBC Throughput ?
  In-Reply-To: <45388E52.6040800@freesurf.fr>
  References: <OFF8DCA2BA.EFEE90F9-ON8525720C.0055BAE2-8525720C.0057540E@michelin.com> <453879DC.7010709@freesurf.fr> <20061020075457.GA24357@soptik.pzkagis.cz> <45388E52.6040800@freesurf.fr>

* 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