Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 342E39FB203 for ; Fri, 20 Oct 2006 04:25:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 53418-05 for ; Fri, 20 Oct 2006 07:25:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from serveurmail01.codata.be (125.123.146.82.ipv4.evonet.be [82.146.123.125]) by postgresql.org (Postfix) with ESMTP id D730F9FB1B8 for ; Fri, 20 Oct 2006 04:25:25 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by serveurmail01.codata.be (Postfix) with ESMTP id 23A2718386F7; Fri, 20 Oct 2006 09:25:24 +0200 (CEST) X-DSPAM-Result: Spam X-DSPAM-Processed: Fri Oct 20 09:25:18 2006 X-DSPAM-Confidence: 0.4949 X-DSPAM-Probability: 1.0000 X-DSPAM-Signature: 453879de141532016469823 X-DSPAM-Factors: 15, X-Virus-Scanned: amavisd-new at Received: from serveurmail01.codata.be ([127.0.0.1]) by localhost (serveurmail01.codata.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dexXwdu0PiA2; Fri, 20 Oct 2006 09:25:18 +0200 (CEST) Received: from [127.0.0.1] (103.186-112-217.adsl.belcenter.be [217.112.186.103]) by serveurmail01.codata.be (Postfix) with ESMTP id B515018386A0; Fri, 20 Oct 2006 09:25:17 +0200 (CEST) Message-ID: <453879DC.7010709@freesurf.fr> Date: Fri, 20 Oct 2006 09:25:16 +0200 From: Arnaud Lesauvage User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: greg.campbell@us.michelin.com CC: pgsql-odbc@postgresql.org Subject: Re: Improve ODBC Throughput ? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 0642-3, 19/10/2006), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.45 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, SARE_MILLIONSOF X-Spam-Level: X-Archive-Number: 200610/74 X-Sequence-Number: 8337 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 ! ;)