pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC)
20+ messages / 6 participants
[nested] [flat]

* TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC)
@ 2006-02-10 14:15 Marc Herbert <Marc.Herbert@continuent.com>
  2006-02-10 14:25 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  0 siblings, 1 reply; 20+ messages in thread

From: Marc Herbert @ 2006-02-10 14:15 UTC (permalink / raw)
  To: pgsql-odbc

Arnaud Lesauvage <thewild@freesurf.fr> writes:

> Magnus Hagander a écrit :
>> Since it works with different speeds in different clients, it *probably*
>> isn't on the server side. I'm far from sure on that though, there may be
>> other paramters that are implicitly changed when ODBC is used.
>
> Yes, that was my first impression also. But the fact that the server
> waits for an ACK from the client before it goes on sending packet is
> quite strange, isn't it ?

I don't think that's what happens.

Those are two very different but unfortunately related things.

1) the Nagle algorithm (disabled by TCP_NO_DELAY) is an optimization
when sending. It prevents sending many small packets, by waiting a
little bit for them to become bigger. The price is a higher latency.

2) the half-ACK frequency is an similar optimization when
receiving. It cuts the number of sent acknowledgements by two, by
waiting a little bit to receive a 2nd packet, acknowledging the two
packets using only one ACK. You can disable it with TcpAckFrequency in
the registry.


So far, those two have nothing in common. But the thing is, TCP
_piggybacks_ acknowledgements packets of data flowing in one direction
together with data packets flowing in the opposite direction.

So, if you force TCP to send data more frequently with TCP_NO_DELAY,
then it will also send ACKs (of the opposite communication) more
frequently as a side effect. Once you decided to send a packet, then
better put the maximum information in it!

Same thing if you force TCP to send ACKs more frequently using
TcpAckFrequency: then you'll get some TCP_NO_DELAY effect as a
bonus. Once you decided to send an ACK, then better send the staging
data in the same packet!

So you see that TcpAckFrequency can (in some scenarios) play the role
of TCP_NO_DELAY. And vice-versa. That's probably what you experienced.






^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
  2006-02-10 14:15 TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Marc Herbert <Marc.Herbert@continuent.com>
@ 2006-02-10 14:25 ` Arnaud Lesauvage <thewild@freesurf.fr>
  2006-02-10 15:38   ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 20+ messages in thread

From: Arnaud Lesauvage @ 2006-02-10 14:25 UTC (permalink / raw)
  To: pgsql-odbc

Marc Herbert a écrit :
> Same thing if you force TCP to send ACKs more frequently using
> TcpAckFrequency: then you'll get some TCP_NO_DELAY effect as a
> bonus. Once you decided to send an ACK, then better send the staging
> data in the same packet!

OK, but Magnus is affirmative that TCP_NO_DELAY is enabled on both 
the client and the server.
So sending ACKs more frequently should not change the behaviour of 
the Nagle algorithm. Or am I still misunderstanding something ?

Regards
--
Arnaud




^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
  2006-02-10 14:15 TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Marc Herbert <Marc.Herbert@continuent.com>
  2006-02-10 14:25 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
@ 2006-02-10 15:38   ` Tom Lane <tgl@sss.pgh.pa.us>
  2006-02-10 16:00     ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  0 siblings, 1 reply; 20+ messages in thread

From: Tom Lane @ 2006-02-10 15:38 UTC (permalink / raw)
  To: Arnaud Lesauvage <thewild@freesurf.fr>; +Cc: pgsql-odbc

Arnaud Lesauvage <thewild@freesurf.fr> writes:
> OK, but Magnus is affirmative that TCP_NO_DELAY is enabled on both 
> the client and the server.
> So sending ACKs more frequently should not change the behaviour of 
> the Nagle algorithm.

Yeah.  The speculations quoted in
http://archives.postgresql.org/pgsql-odbc/2006-02/msg00046.php
as to the server behavior were completely wrong: we do use NODELAY
and we don't have any weird zero-copy algorithm.  However, it is
true that we push out data in 8K bufferloads, which doesn't match
well to typical TCP MTU sizes.  I've occasionally wondered whether
we should not try to make the bufferload a multiple of the MTU
size when using a TCP connection, just so that no "short" packets
get sent unnecessarily.  (For a known MTU length, it'd be trivial
to change the hard-wired buffer size on the server side just to
experiment and see if there's any speedup.)

None of this explains why odbc is slow when psql isn't, though,
especially not if you are using one of the recent odbc releases
that relies on libpq.  The wire-level behavior certainly ought
to be the same for anything using libpq ...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
  2006-02-10 14:15 TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Marc Herbert <Marc.Herbert@continuent.com>
  2006-02-10 14:25 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  2006-02-10 15:38   ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Tom Lane <tgl@sss.pgh.pa.us>
@ 2006-02-10 16:00     ` Arnaud Lesauvage <thewild@freesurf.fr>
  0 siblings, 0 replies; 20+ messages in thread

From: Arnaud Lesauvage @ 2006-02-10 16:00 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-odbc

Tom Lane a écrit :
> None of this explains why odbc is slow when psql isn't, though,
> especially not if you are using one of the recent odbc releases
> that relies on libpq.  The wire-level behavior certainly ought
> to be the same for anything using libpq ...

Yes.
I am trying to figure out what the difference is between an ODBC 
call and a "direct" call, from another application...
The issue might be at a higher level, but I have no clue right now...

Regards
--
Arnaud




^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
@ 2006-02-13 07:46 Philippe Lang <philippe.lang@attiksystem.ch>
  2006-02-13 09:12 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  0 siblings, 1 reply; 20+ messages in thread

From: Philippe Lang @ 2006-02-13 07:46 UTC (permalink / raw)
  To: pgsql-odbc; +Cc: Arnaud Lesauvage <thewild@freesurf.fr>

Hi,

Why don't you use tcpdump, or another sniffer, in order to check that, and
post the result here?

-----Message d'origine-----
De : pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] De la part de Arnaud Lesauvage
Envoyé : vendredi, 10. février 2006 17:01
À : Tom Lane
Cc : pgsql-odbc@postgresql.org
Objet : Re: [ODBC] TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through

Tom Lane a écrit :
> None of this explains why odbc is slow when psql isn't, though, 
> especially not if you are using one of the recent odbc releases that 
> relies on libpq.  The wire-level behavior certainly ought to be the 
> same for anything using libpq ...

Yes.
I am trying to figure out what the difference is between an ODBC call and a
"direct" call, from another application...
The issue might be at a higher level, but I have no clue right now...

Regards
--
Arnaud


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Attachments:

  smime.p7s (application/x-pkcs7-signature, 3.1K) download

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
  2006-02-13 07:46 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Philippe Lang <philippe.lang@attiksystem.ch>
@ 2006-02-13 09:12 ` Arnaud Lesauvage <thewild@freesurf.fr>
  2006-02-20 12:29   ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Marc Herbert <Marc.Herbert@continuent.com>
  0 siblings, 1 reply; 20+ messages in thread

From: Arnaud Lesauvage @ 2006-02-13 09:12 UTC (permalink / raw)
  To: pgsql-odbc

Philippe Lang a écrit :
> Why don't you use tcpdump, or another sniffer, in order to check that, and post the result here?

Hi,

Sure !
Here are the two dumps.
http://tehwild.free.fr/divers/dumps.zip
One is a TCP dump of the query through pgAdmin, the other one
through psqlODBC.
The first obvious difference is that the window size is not the 
same, but I don't know how to interpret that.


Regards
--
Arnaud





^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
  2006-02-13 07:46 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Philippe Lang <philippe.lang@attiksystem.ch>
  2006-02-13 09:12 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
@ 2006-02-20 12:29   ` Marc Herbert <Marc.Herbert@continuent.com>
  2006-02-20 13:50     ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through O B <ob@kselnet.com>
  0 siblings, 1 reply; 20+ messages in thread

From: Marc Herbert @ 2006-02-20 12:29 UTC (permalink / raw)
  To: pgsql-odbc

Arnaud Lesauvage <thewild@freesurf.fr> writes:
>
> Sure !
> Here are the two dumps.
> http://tehwild.free.fr/divers/dumps.zip
> One is a TCP dump of the query through pgAdmin, the other one
> through psqlODBC.
> The first obvious difference is that the window size is not the same,
> but I don't know how to interpret that.

The best free tools I know to analyze such issues is tcptrace + xplot

<http://www.tcptrace.org/;






^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
  2006-02-13 07:46 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Philippe Lang <philippe.lang@attiksystem.ch>
  2006-02-13 09:12 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  2006-02-20 12:29   ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Marc Herbert <Marc.Herbert@continuent.com>
@ 2006-02-20 13:50     ` O B <ob@kselnet.com>
  2006-02-20 13:57       ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  2006-02-20 14:19       ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Marc Herbert <Marc.Herbert@continuent.com>
  0 siblings, 2 replies; 20+ messages in thread

From: O B @ 2006-02-20 13:50 UTC (permalink / raw)
  To: Marc Herbert <Marc.Herbert@continuent.com>; +Cc: pgsql-odbc

You may try "ethereal" which can give you more details than the TCP
dumps with a structured view of packets and protocol layers.

Olivier.

Marc Herbert wrote:

>Arnaud Lesauvage <thewild@freesurf.fr> writes:
>  
>
>>Sure !
>>Here are the two dumps.
>>http://tehwild.free.fr/divers/dumps.zip
>>One is a TCP dump of the query through pgAdmin, the other one
>>through psqlODBC.
>>The first obvious difference is that the window size is not the same,
>>but I don't know how to interpret that.
>>    
>>
>
>The best free tools I know to analyze such issues is tcptrace + xplot
>
><http://www.tcptrace.org/;
>
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 9: In versions below 8.0, the planner will ignore your desire to
>       choose an index scan if your joining column's datatypes do not
>       match
>
>
>  
>

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
  2006-02-13 07:46 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Philippe Lang <philippe.lang@attiksystem.ch>
  2006-02-13 09:12 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  2006-02-20 12:29   ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Marc Herbert <Marc.Herbert@continuent.com>
  2006-02-20 13:50     ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through O B <ob@kselnet.com>
@ 2006-02-20 13:57       ` Arnaud Lesauvage <thewild@freesurf.fr>
  2006-02-21 09:29         ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Marc Herbert <Marc.Herbert@continuent.com>
  1 sibling, 1 reply; 20+ messages in thread

From: Arnaud Lesauvage @ 2006-02-20 13:57 UTC (permalink / raw)
  To: ; +Cc: pgsql-odbc

O B a écrit :
> You may try "ethereal" which can give you more details than the TCP
> dumps with a structured view of packets and protocol layers.

The included dumps *are* ethereal dumps, actually.
There must be a reason why psqlODBC sets a different RWIN than the 
other frontends (psql and pgAdmin), but I don't know which one.

Regards
--
Arnaud




^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
  2006-02-13 07:46 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Philippe Lang <philippe.lang@attiksystem.ch>
  2006-02-13 09:12 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  2006-02-20 12:29   ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Marc Herbert <Marc.Herbert@continuent.com>
  2006-02-20 13:50     ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through O B <ob@kselnet.com>
  2006-02-20 13:57       ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
@ 2006-02-21 09:29         ` Marc Herbert <Marc.Herbert@continuent.com>
  2006-02-21 10:02           ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  0 siblings, 1 reply; 20+ messages in thread

From: Marc Herbert @ 2006-02-21 09:29 UTC (permalink / raw)
  To: pgsql-odbc

Arnaud Lesauvage <thewild@freesurf.fr> writes:

> O B a écrit :
>> You may try "ethereal" which can give you more details than the TCP
>> dumps with a structured view of packets and protocol layers.
>
> The included dumps *are* ethereal dumps, actually.

I think Olivier was talking about ethereal the browser, not about
ethereal the capture front-end.


> There must be a reason why psqlODBC sets a different RWIN than the
> other frontends (psql and pgAdmin), but I don't know which one.

By the way this is the receive buffer size on the _client_, right? (I
would be surprised that this indirectly changes server settings...)


On linux you can trace/check all modifications of the buffer sizes
like this:

 strace -e trace=setsockopt testcode





^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
  2006-02-13 07:46 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Philippe Lang <philippe.lang@attiksystem.ch>
  2006-02-13 09:12 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  2006-02-20 12:29   ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Marc Herbert <Marc.Herbert@continuent.com>
  2006-02-20 13:50     ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through O B <ob@kselnet.com>
  2006-02-20 13:57       ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  2006-02-21 09:29         ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Marc Herbert <Marc.Herbert@continuent.com>
@ 2006-02-21 10:02           ` Arnaud Lesauvage <thewild@freesurf.fr>
  0 siblings, 0 replies; 20+ messages in thread

From: Arnaud Lesauvage @ 2006-02-21 10:02 UTC (permalink / raw)
  To: pgsql-odbc

Marc Herbert a écrit :
> Arnaud Lesauvage <thewild@freesurf.fr> writes:
>> The included dumps *are* ethereal dumps, actually.
> 
> I think Olivier was talking about ethereal the browser, not about
> ethereal the capture front-end.

OK, sorry for that, I did not know there was another ethereal.

>> There must be a reason why psqlODBC sets a different RWIN than the
>> other frontends (psql and pgAdmin), but I don't know which one.
> 
> By the way this is the receive buffer size on the _client_, right? (I
> would be surprised that this indirectly changes server settings...)

Yes. As I wrote in my previous post, I don't know how to interpret 
the logs.
BTW, I just realized that the URL to download the logs was 
incorrect. The correct URL is http://thewild.free.fr/Divers/dumps.zip

> On linux you can trace/check all modifications of the buffer sizes
> like this:
> 
>  strace -e trace=setsockopt testcode

I am on a WinXP box. It is pretty bad for debugging purposes of 
course...

Reagards
--
Arnaud




^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
  2006-02-13 07:46 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Philippe Lang <philippe.lang@attiksystem.ch>
  2006-02-13 09:12 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  2006-02-20 12:29   ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Marc Herbert <Marc.Herbert@continuent.com>
  2006-02-20 13:50     ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through O B <ob@kselnet.com>
@ 2006-02-20 14:19       ` Marc Herbert <Marc.Herbert@continuent.com>
  1 sibling, 0 replies; 20+ messages in thread

From: Marc Herbert @ 2006-02-20 14:19 UTC (permalink / raw)
  To: pgsql-odbc

O B <ob@kselnet.com> writes:

> You may try "ethereal" which can give you more details than the TCP
> dumps with a structured view of packets and protocol layers.

ethereal is a great general-purpose tool but is not good at analyzing
TCP performance issues, because you only get numbers.  With
tcptrace/xplot you get graphical timelines of sequence numbers and of
window sizes; I don't think ethereal can't match that. It's the same
difference between an excel spreadsheet and the corresponding graph.

Of course you have to be sure that your performance issue is somewhat
related to TCP parameters, else there is no need to go into tcptrace.







^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC)
@ 2006-08-01 09:55 Arnaud Lesauvage <thewild@freesurf.fr>
  2006-08-01 10:12 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Ludek Finstrle <luf@pzkagis.cz>
  0 siblings, 1 reply; 20+ messages in thread

From: Arnaud Lesauvage @ 2006-08-01 09:55 UTC (permalink / raw)
  To: pgsql-odbc

Hi list

This is a follow-up to
http://archives.postgresql.org/pgsql-odbc/2006-02/msg00067.php

Let me sum up the problem :
I run a query in pgadmin into a file (to be sure that all data is
transfered). It runs very fast (in about 10sec), and data is
transfered from the server at a very fast rate (~1MB per second).
I run the same query via psqlodbc in a VBA application. It takes
ages to run and data is transfered at a very slow pace (~80kB per
second).

The query returns the WKT representation of a geometry, so it
returns a very long varchar field.
Last time we discussed this problem, we thought the problem was
with TCP_NO_DELAY.
We hadn't found out why the TCP/IP stack behaved differently in
pgadmin and in psqlodbc.

I am still experiencing this behaviour, even though I installed
postgresql on a brand new server, and my workstation was also just
reinstalled.
Since the problem is still there, I'd like to know if newer
versions of psqlodbc could have changed things.
I am still using the latest official releases (8.01.0200), but
maybe there are beta release I could try ?

Any help would be greatly appreciated !

Thanks a lot
--
Arnaud





^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC)
  2006-08-01 09:55 TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Arnaud Lesauvage <thewild@freesurf.fr>
@ 2006-08-01 10:12 ` Ludek Finstrle <luf@pzkagis.cz>
  0 siblings, 0 replies; 20+ messages in thread

From: Ludek Finstrle @ 2006-08-01 10:12 UTC (permalink / raw)
  To: Arnaud Lesauvage <thewild@freesurf.fr>; +Cc: pgsql-odbc

> I am still experiencing this behaviour, even though I installed
> postgresql on a brand new server, and my workstation was also just
> reinstalled.
> Since the problem is still there, I'd like to know if newer
> versions of psqlodbc could have changed things.
> I am still using the latest official releases (8.01.0200), but
> maybe there are beta release I could try ?

There is new version 08.02.0002 on pgfoundry.org. And in bug
entry BiDiMode* you can find the URL for the latest .dll
files located at Hiroshi pages.
The 08.02 version is based on 07.03 - not 08.01 so it could helps you.

Regards,

Luf



^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC)
@ 2006-08-01 17:33 Philippe Lang <philippe.lang@attiksystem.ch>
  0 siblings, 0 replies; 20+ messages in thread

From: Philippe Lang @ 2006-08-01 17:33 UTC (permalink / raw)
  To: Arnaud Lesauvage <thewild@freesurf.fr>; +Cc: pgsql-odbc

pgsql-odbc-owner@postgresql.org wrote:

>> I am still experiencing this behaviour, even though I installed
>> postgresql on a brand new server, and my workstation was also just
>> reinstalled. Since the problem is still there, I'd like to know if
>> newer versions of psqlodbc could have changed things.
>> I am still using the latest official releases (8.01.0200), but maybe
>> there are beta release I could try ?
> 
> There is new version 08.02.0002 on pgfoundry.org. And in bug
> entry BiDiMode* you can find the URL for the latest .dll
> files located at Hiroshi pages.
> The 08.02 version is based on 07.03 - not 08.01 so it could helps you.

The link for Hiroshi's website is the following:

http://www.geocities.jp/inocchichichi/psqlodbc/index.html

---------------
Philippe Lang
Attik System

Attachments:

  smime.p7s (application/x-pkcs7-signature, 3.1K) download

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC)
@ 2006-08-01 17:42 Philippe Lang <philippe.lang@attiksystem.ch>
  2006-08-01 17:45 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  0 siblings, 1 reply; 20+ messages in thread

From: Philippe Lang @ 2006-08-01 17:42 UTC (permalink / raw)
  To: Arnaud Lesauvage <thewild@freesurf.fr>; pgsql-odbc

pgsql-odbc-owner@postgresql.org wrote:
> Hi list
> 
> This is a follow-up to
> http://archives.postgresql.org/pgsql-odbc/2006-02/msg00067.php
> 
> Let me sum up the problem :
> I run a query in pgadmin into a file (to be sure that all
> data is transfered). It runs very fast (in about 10sec), and
> data is transfered from the server at a very fast rate (~1MB per
> second). I run the same query via psqlodbc in a VBA application. It
> takes ages to run and data is transfered at a very slow pace (~80kB
> per second). 

Arnaud,

What client exactly do you use for querying the server in VBA? Are you maybe using MS Access? If yes, what version of Access are you using? 2003? And are you using an Access 2000 compatible MDB maybe?

Otherwise, what client data access package are you using from VBA? DAO? ADO?

---------------
Philippe Lang
Attik System

Attachments:

  smime.p7s (application/x-pkcs7-signature, 3.1K) download

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
  2006-08-01 17:42 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Philippe Lang <philippe.lang@attiksystem.ch>
@ 2006-08-01 17:45 ` Arnaud Lesauvage <thewild@freesurf.fr>
  0 siblings, 0 replies; 20+ messages in thread

From: Arnaud Lesauvage @ 2006-08-01 17:45 UTC (permalink / raw)
  To: Philippe Lang <philippe.lang@attiksystem.ch>; +Cc: pgsql-odbc

Philippe Lang a écrit :
> What client exactly do you use for querying the server in VBA? Are you maybe using MS Access? If yes, what version of Access are you using? 2003? And are you using an Access 2000 compatible MDB maybe?
> Otherwise, what client data access package are you using from VBA? DAO? ADO?


Philippe, the client is an Autocad2000 VBA macro.
I am using ADO, with a DSN-less connection (basic connection 
string, nothing but server address, port, username and password).

Do you have a clue ?

Regards
--
Arnaud



^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC)
@ 2006-08-01 17:58 Philippe Lang <philippe.lang@attiksystem.ch>
  2006-08-01 20:37 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  0 siblings, 1 reply; 20+ messages in thread

From: Philippe Lang @ 2006-08-01 17:58 UTC (permalink / raw)
  To: pgsql-odbc

Arnaud Lesauvage wrote:
> Philippe Lang a écrit :
>> What client exactly do you use for querying the server in
> VBA? Are you maybe using MS Access? If yes, what version of
> Access are you using? 2003? And are you using an Access 2000
> compatible MDB maybe?
>> Otherwise, what client data access package are you using from VBA?
>> DAO? ADO? 
> 
> 
> Philippe, the client is an Autocad2000 VBA macro.
> I am using ADO, with a DSN-less connection (basic connection
> string, nothing but server address, port, username and password).
> 
> Do you have a clue ?
> 
> Regards

Hi,

I suggest you try another client, like for example MS Access 2003 with a 2003 MDB, for example, just to make sure the problems comes from the driver. What you experience might be a problem that come from Autocad...

Can you make a test with DAO as well? Quite old, but might be faster as well...

---------------
Philippe Lang
Attik System

Attachments:

  smime.p7s (application/x-pkcs7-signature, 3.1K) download

^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
  2006-08-01 17:58 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Philippe Lang <philippe.lang@attiksystem.ch>
@ 2006-08-01 20:37 ` Arnaud Lesauvage <thewild@freesurf.fr>
  2006-08-02 07:30   ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
  0 siblings, 1 reply; 20+ messages in thread

From: Arnaud Lesauvage @ 2006-08-01 20:37 UTC (permalink / raw)
  To: Philippe Lang <philippe.lang@attiksystem.ch>; +Cc: pgsql-odbc

Philippe Lang a écrit :
> I suggest you try another client, like for example MS Access 2003 with a 2003 MDB, for example, just to make sure the problems comes from the driver. What you experience might be a problem that come from Autocad...
> 
> Can you make a test with DAO as well? Quite old, but might be faster as well...

I can try from within Access2000, but I don't have Access2003.
I'll try DAO as well.

Thanks for your suggestions !

--
Arnaud



^ permalink  raw  reply  [nested|flat] 20+ messages in thread

* Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through
  2006-08-01 17:58 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Philippe Lang <philippe.lang@attiksystem.ch>
  2006-08-01 20:37 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
@ 2006-08-02 07:30   ` Arnaud Lesauvage <thewild@freesurf.fr>
  0 siblings, 0 replies; 20+ messages in thread

From: Arnaud Lesauvage @ 2006-08-02 07:30 UTC (permalink / raw)
  To: thewild@free.fr; +Cc: Philippe Lang <philippe.lang@attiksystem.ch>; pgsql-odbc

Arnaud Lesauvage wrote:
> Philippe Lang a écrit :
>> I suggest you try another client, like for example MS Access 2003 with a 2003 MDB, for example, just to make sure the problems comes from the driver. What you experience might be a problem that come from Autocad...
>> 
>> Can you make a test with DAO as well? Quite old, but might be faster as well...
> 
> I can try from within Access2000, but I don't have Access2003.
> I'll try DAO as well.

I found the problem !
I just used UseDeclareFetch=1 in the connection string, and now my 
queries are blindingly fast !!!

I am quite amazed, I am pretty sure I tried this before... I even 
thin I removed this setting when trying to find the cause of the 
problemm !...

Thanks a lot to all the people who helped me !

Regards
--
Arnaud




^ permalink  raw  reply  [nested|flat] 20+ messages in thread


end of thread, other threads:[~2006-08-02 07:30 UTC | newest]

Thread overview: 20+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-10 14:15 TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Marc Herbert <Marc.Herbert@continuent.com>
2006-02-10 14:25 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
2006-02-10 15:38   ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Tom Lane <tgl@sss.pgh.pa.us>
2006-02-10 16:00     ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
2006-02-13 07:46 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Philippe Lang <philippe.lang@attiksystem.ch>
2006-02-13 09:12 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
2006-02-20 12:29   ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Marc Herbert <Marc.Herbert@continuent.com>
2006-02-20 13:50     ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through O B <ob@kselnet.com>
2006-02-20 13:57       ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
2006-02-21 09:29         ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Marc Herbert <Marc.Herbert@continuent.com>
2006-02-21 10:02           ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
2006-02-20 14:19       ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Marc Herbert <Marc.Herbert@continuent.com>
2006-08-01 09:55 TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Arnaud Lesauvage <thewild@freesurf.fr>
2006-08-01 10:12 ` Ludek Finstrle <luf@pzkagis.cz>
2006-08-01 17:33 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Philippe Lang <philippe.lang@attiksystem.ch>
2006-08-01 17:42 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Philippe Lang <philippe.lang@attiksystem.ch>
2006-08-01 17:45 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
2006-08-01 17:58 Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through ODBC) Philippe Lang <philippe.lang@attiksystem.ch>
2006-08-01 20:37 ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>
2006-08-02 07:30   ` Re: TCP_NO_DELAY & TcpAckFrequency (Re: Slow query through Arnaud Lesauvage <thewild@freesurf.fr>

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