Re: Slow query over ADSL Line - Mailing list pgsql-odbc

From Thomas Chabaud
Subject Re: Slow query over ADSL Line
Date
Msg-id 440D657D.8050408@geosys.com
Whole thread Raw
In response to Re: Slow query over ADSL Line  (Marten Feldtmann <m.feldtmann@t-online.de>)
Responses Re: Slow query over ADSL Line
List pgsql-odbc
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


pgsql-odbc by date:

Previous
From: Marten Feldtmann
Date:
Subject: Re: Slow query over ADSL Line
Next
From: Ludek Finstrle
Date:
Subject: Re: Slow query over ADSL Line