Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 3B6819FB2F9 for ; Fri, 20 Oct 2006 05:52:48 -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 87444-06 for ; Fri, 20 Oct 2006 08:52:37 +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 01EC89FB253 for ; Fri, 20 Oct 2006 05:52:36 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by serveurmail01.codata.be (Postfix) with ESMTP id DF9C31838727; Fri, 20 Oct 2006 10:52:35 +0200 (CEST) X-DSPAM-Result: Innocent X-DSPAM-Processed: Fri Oct 20 10:52:35 2006 X-DSPAM-Confidence: 0.5384 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 45388e53114082066714844 X-DSPAM-Factors: 27, 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 vyy7AVKDTWHh; Fri, 20 Oct 2006 10:52:35 +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 004CF18386F9; Fri, 20 Oct 2006 10:52:34 +0200 (CEST) Message-ID: <45388E52.6040800@freesurf.fr> Date: Fri, 20 Oct 2006 10:52:34 +0200 From: Arnaud Lesauvage User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Ludek Finstrle CC: pgsql-odbc@postgresql.org Subject: Re: Improve ODBC Throughput ? References: <453879DC.7010709@freesurf.fr> <20061020075457.GA24357@soptik.pzkagis.cz> In-Reply-To: <20061020075457.GA24357@soptik.pzkagis.cz> 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.335 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200610/80 X-Sequence-Number: 8343 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).