From: Arnaud Lesauvage <thewild@freesurf.fr>
To: greg.campbell@us.michelin.com
Cc: pgsql-odbc@postgresql.org
Subject: Re: Improve ODBC Throughput ?
Date: Fri, 20 Oct 2006 09:25:16 +0200
Message-ID: <453879DC.7010709@freesurf.fr> (raw)
In-Reply-To: <OFF8DCA2BA.EFEE90F9-ON8525720C.0055BAE2-8525720C.0057540E@michelin.com>
References: <OFF8DCA2BA.EFEE90F9-ON8525720C.0055BAE2-8525720C.0057540E@michelin.com>
greg.campbell@us.michelin.com a écrit :
> You say that you have a performance issue.
>
> 1. Cache Size
> I would guess that the problem may be in how many records you retrieve at a
> time.
> In VBA code with ADO , it is sometimes helpful to use the Recordset
> CacheSize property to pull more than one row at a time.
I will try this !
I never used this setting, thansk for pointing this out !
> 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
TrueIsMinus1=1
BoolsAsChar=0
TextAsLongVarchar=0
RowVersioning=1
RecognizeUniqueIndexes=1
> 3. General design for performance
> I don't know much about your PostgreSQL database and Access setup, but I
> can imagine a situation where you are trying to open a linked table which
> has millions of rows and some of the fields are of type TEXT, essentially
> BLOBs that Access must treat as MEMO. Simply trying to open something like
> that whole is a pretty bad idea for a transactional application. It is
> usually best to filter,...retrieve the fewest rows to suit the users need,
> and to do other transactions explicitly one records at a time on primary
> keys.
All my text fields are maximum 254 characters long (to be
recognized as varchar in Access).
I only have very few memo fields, and only when they are
compulsorey.
I think the DB design is OK in my case.
> Lastly, you could turn on the ODBC trace or the psqlODBC MyLog to looks for
> less obvious issues, since you have ruled out the network.
I'll do that as a last solution, I don't have much time to
dig into these huge logs. But I will if I don't find
anything else.
> Much Luck to you.
Thanks, I might need luck ! ;)
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, greg.campbell@us.michelin.com
Subject: Re: Improve ODBC Throughput ?
In-Reply-To: <453879DC.7010709@freesurf.fr>
References: <OFF8DCA2BA.EFEE90F9-ON8525720C.0055BAE2-8525720C.0057540E@michelin.com> <453879DC.7010709@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