pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: greg.campbell@us.michelin.com
To: pgsql-odbc@postgresql.org
Subject: Re: Improve ODBC Throughput ?
Date: Thu, 19 Oct 2006 11:53:51 -0400
Message-ID: <OFF8DCA2BA.EFEE90F9-ON8525720C.0055BAE2-8525720C.0057540E@michelin.com> (raw)
In-Reply-To: <45378A85.6070202@freesurf.fr>


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.

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.

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.

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.

Much Luck to you.

Greg Campbell ENG-ASE/Michelin US5
Lexington, South Carolina
803-951-5561, x75561
Fax: 803-951-5531
greg.campbell@us.michelin.com



                                                                           
             Arnaud Lesauvage                                              
             <thewild@freesurf                                             
             .fr>                                                       To 
             Sent by:                  "Obe, Regina"                       
             pgsql-odbc-owner@         <robe.dnd@cityofboston.gov>         
             postgresql.org                                             cc 
                                       pgsql-odbc@postgresql.org           
                                                                   Subject 
             10/19/2006 10:24          Re: [ODBC] Improve ODBC Throughput  
                                       ?                                   
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Obe, Regina a écrit :
> What kinds of indexes do you have on your tables?  I think the way
> Access works to limit transfer it first pulls the indexes and probably
> the primary one first to determine how to fetch and how many to fetch.
> I suspect if you have no indexes performance would be really bad.
>
> Also which version of psqlODBC driver are you using?

I have integer primary keys on most tables, if not all of them.
Even my views have an integer primary key (at least,
something that can be used as an integer pkey in Access).

My version of psqlODBC is 8.1.2.0.

I forgot to mention something important : I obtain the best
performances (500kB / sec, cf my first post) when I am NOT
in access.
In a VBA module (Autocad, not Access), I open an ADO
connection to PostgreSQL and directly query the server (no
linked table involved here). But still, this is "only"
500kB/sec...



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@postgresql.org so that your
       message can get through to the mailing list cleanly

Attachments:

graycol.gif (image/gif, 105B) download view image
pic31986.gif (image/gif, 1.2K) download view image
ecblank.gif (image/gif, 45B) download view image

view thread (20+ messages)  latest in thread

Message-ID: <OFF8DCA2BA.EFEE90F9-ON8525720C.0055BAE2-8525720C.0057540E@michelin.com>
Permalink:  ../OFF8DCA2BA.EFEE90F9-ON8525720C.0055BAE2-8525720C.0057540E@michelin.com/
Also on:    postgresql.org/message-id/OFF8DCA2BA.EFEE90F9-ON8525720C.0055BAE2-8525720C.0057540E@michelin.com

 · 

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: greg.campbell@us.michelin.com
  Subject: Re: Improve ODBC Throughput ?
  In-Reply-To: <OFF8DCA2BA.EFEE90F9-ON8525720C.0055BAE2-8525720C.0057540E@michelin.com>
  References: <45378A85.6070202@freesurf.fr> <OFF8DCA2BA.EFEE90F9-ON8525720C.0055BAE2-8525720C.0057540E@michelin.com>

* 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