pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Chabaud <tc@geosys.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Slow query over ADSL Line
Date: Tue, 07 Mar 2006 11:50:37 +0100
Message-ID: <440D657D.8050408@geosys.com> (raw)
In-Reply-To: <144.20.07.01.06.03.2006@www.schrievkrom.de>
References: <440C0CDA.5010007@geosys.com>
	<144.20.07.01.06.03.2006@www.schrievkrom.de>

Marten Feldtmann a écrit :
> Thomas Chabaud schrieb:
> 
>> 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 first thing is: how many statements do you really execute. Then one 
> has to consider
> the latency times of the medium: ADSL against Ethernet is very, very 
> different !
> 
> Marten
> 

Thanks everybody for your helpful advices.

I have optimized my application and I have set the UseDeclareFetchOption 0, 
to reduce the total number of sent queries. It seems very efficient, the 
queries now takes only 25/30s to fetch.

But during my tests, I've seen strange error in the log files :

conn=143130696, PGAPI_DriverConnect(out)='DRIVER={PostgreSQL ANSI};
DATABASE=aveyron;SERVER=XXX.XXX.XXX.XXX;PORT=5432;
SSLMODE=prefer;UID=mylogin;PWD=mypass;ReadOnly=0;FakeOidIndex=0;ShowOidColumn=0;
RowVersioning=0;ShowSystemTables=0;ConnSettings=;Fetch=10000;Socket=8192;
UnknownSizes=0;MaxVarcharSize=254;MaxLongVarcharSize=8190;Debug=1;CommLog=1;
Optimizer=1;Ksqo=1;UseDeclareFetch=0;TextAsLongVarchar=1;UnknownsAsLongVarchar=0;
BoolsAsChar=1;Parse=0;CancelAsFreeStmt=0;ExtraSysTablePrefixes=dd_;;LFConversion=1;
UpdatableCursors=0;DisallowPremature=0;TrueIsMinus1=1;BI=0;ByteaAsLongVarBinary=0;
UseServerSidePrepare=0;LowerCaseIdentifier=0'

DESCRIPTOR ERROR: func=PGAPI_SetDescField, desc='', errnum=11, errmsg='bad 
parameter number'

What does it means ? Is it only a warning or an annoying problem ?

Thanks in advance.

Thomas




view thread (14+ messages)  latest in thread

Message-ID: <440D657D.8050408@geosys.com>
Permalink:  ../440D657D.8050408@geosys.com/
Also on:    postgresql.org/message-id/440D657D.8050408@geosys.com

 · 

reply

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: <440D657D.8050408@geosys.com>
  References: <440C0CDA.5010007@geosys.com> <144.20.07.01.06.03.2006@www.schrievkrom.de> <440D657D.8050408@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