Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 772549FA5D8 for ; Thu, 19 Oct 2006 14:26:54 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 00771-07 for ; Thu, 19 Oct 2006 14:26:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from gk-us2.us.michelin.com (gk-us2.michelin.com [156.65.14.19]) by postgresql.org (Postfix) with ESMTP id 95AE09FB264 for ; Thu, 19 Oct 2006 14:21:25 -0300 (ADT) Received: from oncpfxp3-out.onc.michelin.com (unverified [10.21.4.30]) by gk-us2.us.michelin.com (Clearswift SMTPRS 5.1.7) with ESMTP id for ; Thu, 19 Oct 2006 13:20:54 -0400 Received: from oncns021.onc.michelin.com (oncns021.onc.michelin.com [10.21.2.76]) by oncpfxp3-out.onc.michelin.com (Postfix) with ESMTP id A9D3E39A96 for ; Thu, 19 Oct 2006 11:53:53 -0400 (EDT) In-Reply-To: <45378A85.6070202@freesurf.fr> Subject: Re: Improve ODBC Throughput ? To: pgsql-odbc@postgresql.org X-Mailer: Lotus Notes 652HF1161 February 03, 2006 Message-ID: From: greg.campbell@us.michelin.com Date: Thu, 19 Oct 2006 11:53:51 -0400 X-MIMETrack: Serialize by Router on ONCNS021/MICHELIN(Release 6.5.5|November 30, 2005) at 10/19/2006 11:53:53 MIME-Version: 1.0 Content-type: multipart/related; Boundary="0__=0ABBF89FDFC63C728f9e8a93df938690918c0ABBF89FDFC63C72" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.639 tagged_above=0 required=5 tests=AWL, HTML_40_50, HTML_MESSAGE, NO_REAL_NAME, RCVD_IN_WHOIS_INVALID, SARE_MILLIONSOF X-Spam-Level: ** X-Archive-Number: 200610/60 X-Sequence-Number: 8323 --0__=0ABBF89FDFC63C728f9e8a93df938690918c0ABBF89FDFC63C72 Content-type: multipart/alternative; Boundary="1__=0ABBF89FDFC63C728f9e8a93df938690918c0ABBF89FDFC63C72" --1__=0ABBF89FDFC63C728f9e8a93df938690918c0ABBF89FDFC63C72 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: quoted-printable 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 = =20 Arnaud Lesauvage = =20 To= =20 Sent by: "Obe, Regina" = =20 pgsql-odbc-owner@ = =20 postgresql.org cc= =20 pgsql-odbc@postgresql.org = =20 Subject= =20 10/19/2006 10:24 Re: [ODBC] Improve ODBC Throughput = =20 ? = =20 = =20 = =20 = =20 = =20 = =20 = =20 Obe, Regina a =E9crit : > 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 --1__=0ABBF89FDFC63C728f9e8a93df938690918c0ABBF89FDFC63C72 Content-type: text/html; charset=ISO-8859-1 Content-Disposition: inline Content-transfer-encoding: quoted-printable

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 CacheSi= ze 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 exper= imented with the DECLARE/FETCH option in the psqlODBC settngs.I am not enti= rely 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 ca= n 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 BLOB= s 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 d= o 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

3D"InactiveArnaud Lesauvage <thewild@freesurf.fr>


          Arnaud Lesauvage <thewild@freesurf.fr>=
          Sent by: pgsql-odbc-owner@postgresql.org

          10/19/2006 10:24

3D""<= br>
To
3D""
"Obe, Regina" <robe.dnd@cityofboston.gov><= /font>
3D""<= br>
cc
3D""
pgsql-odbc@postgresql.org
3D""<= br>
Subject
3D""
Re: [ODBC] Improve ODBC Throughput ?
3D""3D""

Obe, Regina a =E9crit :
> What kinds of indexes do you have on your tables?  I think the wa= y
> 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

--1__=0ABBF89FDFC63C728f9e8a93df938690918c0ABBF89FDFC63C72-- --0__=0ABBF89FDFC63C728f9e8a93df938690918c0ABBF89FDFC63C72 Content-type: image/gif; name="graycol.gif" Content-Disposition: inline; filename="graycol.gif" Content-ID: <10__=0ABBF89FDFC63C728f9e8a93df9@michelin.com> Content-transfer-encoding: base64 R0lGODlhEAAQAKECAMzMzAAAAP///wAAACH5BAEAAAIALAAAAAAQABAAAAIXlI+py+0PopwxUbpu ZRfKZ2zgSJbmSRYAIf4fT3B0aW1pemVkIGJ5IFVsZWFkIFNtYXJ0U2F2ZXIhAAA7 --0__=0ABBF89FDFC63C728f9e8a93df938690918c0ABBF89FDFC63C72 Content-type: image/gif; name="pic31986.gif" Content-Disposition: inline; filename="pic31986.gif" Content-ID: <20__=0ABBF89FDFC63C728f9e8a93df9@michelin.com> Content-transfer-encoding: base64 R0lGODlhWABDALP/AAAAAK04Qf79/o+Gm7WuwlNObwoJFCsoSMDAwGFsmIuezf///wAAAAAAAAAA AAAAACH5BAEAAAgALAAAAABYAEMAQAT/EMlJq704682770RiFMRinqggEUNSHIchG0BCfHhOjAuh EDeUqTASLCbBhQrhG7xis2j0lssNDopE4jfIJhDaggI8YB1sZeZgLVA9YVCpnGagVjV171aRVrYR RghXcAGFhoUETwYxcXNyADJ3GlcSKGAwLwllVC1vjIUHBWsFilKQdI8GA5IcpApeJQt8L09lmgkH LZikoU5wjqcyAMMFrJIDPA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fGQnxSCDilTVIA0yl5ciTovgLuBDKFUDE9aQcw 9SA+rjSNf9/M1gxrj6VwDTS0IUSElMzBfsj0NFXR2kwsV1A5IF1grLgLL/r1R40BZEnuBWgmQEyb jqRwSAt6bqMCOFkvKFN2GPPkUzIm/SCF8z8pVzpbjVnMsy0vOr1hw3SaSRUhpY09v0z0J1FnwzPl fmh+xl4WtR0zGu24I4KbMQm3lnVu2oNWxI9W/lcyzA+mCKF4DBikxb/+UWtOGRiFP8qEwAayIgIA Ow== --0__=0ABBF89FDFC63C728f9e8a93df938690918c0ABBF89FDFC63C72 Content-type: image/gif; name="ecblank.gif" Content-Disposition: inline; filename="ecblank.gif" Content-ID: <30__=0ABBF89FDFC63C728f9e8a93df9@michelin.com> Content-transfer-encoding: base64 R0lGODlhEAABAIAAAAAAAP///yH5BAEAAAEALAAAAAAQAAEAAAIEjI8ZBQA7 --0__=0ABBF89FDFC63C728f9e8a93df938690918c0ABBF89FDFC63C72--