Binary transfer vs Text transfer

Started by Aleksei Ivanovover 5 years ago3 messages
#1Aleksei Ivanov
iv.alekseii@gmail.com

Hello, colleagues,

I have one question related to my current measurements results.

I am fetching integers in text format like:

Select * from table limit 10000000. It take 18.5 seconds to finish and the
transfer data is 633 MB.

When I fetching the same data using binary cursor, the transfer data is 480
MB, but the transfer time is 21.5 seconds?

So, I have one question could someone explain what can be the reason why
the transferring time for binary data is higher?

Best regards,

#2Andres Freund
andres@anarazel.de
In reply to: Aleksei Ivanov (#1)
Re: Binary transfer vs Text transfer

Hi,

On 2020-06-17 11:55:44 -0700, Aleksei Ivanov wrote:

I have one question related to my current measurements results.

I am fetching integers in text format like:

Select * from table limit 10000000. It take 18.5 seconds to finish and the
transfer data is 633 MB.

When I fetching the same data using binary cursor, the transfer data is 480
MB, but the transfer time is 21.5 seconds?

So, I have one question could someone explain what can be the reason why
the transferring time for binary data is higher?

This thread might be interesting:
/messages/by-id/CAMkU=1whbRDUwa4eayD9+59K-coxO9senDkPRbTn3cg0pUz4AQ@mail.gmail.com

Greetings,

Andres Freund

#3Aleksei Ivanov
iv.alekseii@gmail.com
In reply to: Andres Freund (#2)
Re: Binary transfer vs Text transfer

Hi,

Thanks for the attached link, but I also noticed using iftop, that during
fetching the data there is almost no delay using text transfer, while there
is several seconds in delay before data is starting fetching using binary
transfer. Could you suggest where can I have a look to resolve it or
decrease that time?

Best regards,

On Wed, Jun 17, 2020 at 12:12 Andres Freund <andres@anarazel.de> wrote:

Show quoted text

Hi,

On 2020-06-17 11:55:44 -0700, Aleksei Ivanov wrote:

I have one question related to my current measurements results.

I am fetching integers in text format like:

Select * from table limit 10000000. It take 18.5 seconds to finish and

the

transfer data is 633 MB.

When I fetching the same data using binary cursor, the transfer data is

480

MB, but the transfer time is 21.5 seconds?

So, I have one question could someone explain what can be the reason why
the transferring time for binary data is higher?

This thread might be interesting:

/messages/by-id/CAMkU=1whbRDUwa4eayD9+59K-coxO9senDkPRbTn3cg0pUz4AQ@mail.gmail.com

Greetings,

Andres Freund