X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D777D9DC800 for ; Mon, 6 Mar 2006 06:20:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 82915-07 for ; Mon, 6 Mar 2006 06:20:27 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id D008A9DC84C for ; Mon, 6 Mar 2006 06:20:23 -0400 (AST) Received: from geosys.fr (mail.geosys.com [195.115.79.21]) by svr4.postgresql.org (Postfix) with ESMTP id C32145AF097 for ; Mon, 6 Mar 2006 10:20:25 +0000 (GMT) Received: from [192.168.1.60] tc@geosys.fr [195.115.79.20] by geosys.fr with NetMail SMTP Agent $Revision: 3.16 $ on Microsoft Windows; Mon, 06 Mar 2006 11:24:10 +0100 Message-ID: <440C0CDA.5010007@geosys.com> Date: Mon, 06 Mar 2006 11:20:10 +0100 From: Thomas Chabaud Reply-To: tc@geosys.com Organization: Geosys User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Slow query over ADSL Line Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200603/16 X-Sequence-Number: 7302 Hello, I'm using psql ODBC driver with ADO in a visual basic 6 application, and I have some speed issues when I connect using an adsl line (8M down/1M up) (it works perfectly well using an ethernet 100Mbps LAN). The application sends about 300 queries to server, and it takes 150 seconds to fetch the results of all queries. I have also tested some of the queries with pgAdmin, and it takes about 1.5s/2s for each query. The queries are all in the same simple form : "select myfield1,myfield2,myfield3[...] from table where id=myid", and they send back only 40/50 rows max. I have no debug option enabled, and there is no "blob" object in my database. I use the following options with ADO recordset : Dim rec as ADODB.Recordset set rec=New ADODB.Recordset rec.open myquery, myDbConn, adOpenStatic, adLockReadOnly, adCmdText Does the slowness is due to ADO or ODBC ? Is there a simple way to speed up the result fetch ? Thanks in advance, Regards Thomas Chabaud