From: Thomas Chabaud <tc@geosys.com>
To: pgsql-odbc@postgresql.org
Subject: Slow query over ADSL Line
Date: Mon, 06 Mar 2006 11:20:10 +0100
Message-ID: <440C0CDA.5010007@geosys.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: tc@geosys.com
Subject: Re: Slow query over ADSL Line
In-Reply-To: <440C0CDA.5010007@geosys.com>
References: <440C0CDA.5010007@geosys.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox