Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 3F5A1B5DBEE for ; Tue, 5 Jul 2011 16:20:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 89493-10 for ; Tue, 5 Jul 2011 19:19:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 601D6B5DBDB for ; Tue, 5 Jul 2011 16:19:54 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QeBA1-0006CC-CE for pgsql-odbc@postgresql.org; Tue, 05 Jul 2011 12:19:53 -0700 Date: Tue, 5 Jul 2011 12:19:53 -0700 (PDT) From: BGoebel To: pgsql-odbc@postgresql.org Message-ID: <1309893593372-4554370.post@n5.nabble.com> In-Reply-To: <1309885782.6267.18.camel@localhost.localdomain> References: <1309884270900-4553904.post@n5.nabble.com> <1309885782.6267.18.camel@localhost.localdomain> Subject: Re: RowCount && UseDeclareFetch Performance MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201107/4 X-Sequence-Number: 10681 Many thanks for your message + help. I have made some tests, which exactly confirm your information. Seeing things a bit clearer now. The prepared statement you suggested not has made a big difference, but i will have that in mind. Conclusion: To limit memory usage, execution time and bandwidth with large result sets (Columns X Rows) i HAVE to use "UseDeclareFetch=1" and "Fetch=xxx". "Fetch=xxx" with "UseDeclareFetch=0" does not help. I still hope there is a way to get RowCount without ReConnecting, ReSelecting and halve the performance. regards -- View this message in context: http://postgresql.1045698.n5.nabble.com/RowCount-UseDeclareFetch-Performance-tp4553904p4554370.html Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.