pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Thomas Güttler <guettliml@thomas-guettler.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: minio server. Was: Performance of ByteA: ascii vs binary
Date: Mon, 18 Mar 2019 09:52:20 -0700
Message-ID: <ab65a4a3-d619-b6cc-fea1-efdb4790a6f9@aklaver.com> (raw)
In-Reply-To: <4cb74bcb-ca70-3677-d6f8-87d859d660ff@thomas-guettler.de>
References: <c861b16d-29cb-47ee-6c22-e15f608928b6@thomas-guettler.de>
	<8002ab5d-64b9-46c9-c2f4-62d03dd18cf3@aklaver.com>
	<2888.1552920585@sss.pgh.pa.us>
	<4cb74bcb-ca70-3677-d6f8-87d859d660ff@thomas-guettler.de>

On 3/18/19 7:59 AM, Thomas Güttler wrote:
> 
> 
> Am 18.03.19 um 15:49 schrieb Tom Lane:
>> Adrian Klaver <adrian.klaver@aklaver.com> writes:
>>> On 3/18/19 7:33 AM, Thomas Güttler wrote:
>>>> If I used ascii data the tests took 52 seconds.
>>>> If I used random binary data the test took 250 seconds.
>>
>> This doesn't seem terribly surprising in bytea_output = escape
>> mode.  Probably with bytea_output = hex the performance would
>> be less data-dependent.
> 
> Thank you for your fast reply.
> 
> I guess we will use a minio server to store the blobs.

According to this:

http://initd.org/psycopg/docs/usage.html?highlight=bytea#adapt-binary

psycopg2 will use 'hex' by default.

Have you tried the test outside Python/psycopg2 e.g in psql to see if 
the performance hit still exists?

> 
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (3+ messages)  latest in thread

Message-ID: <ab65a4a3-d619-b6cc-fea1-efdb4790a6f9@aklaver.com>
Permalink:  ../ab65a4a3-d619-b6cc-fea1-efdb4790a6f9@aklaver.com/
Also on:    postgresql.org/message-id/ab65a4a3-d619-b6cc-fea1-efdb4790a6f9@aklaver.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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, guettliml@thomas-guettler.de
  Subject: Re: minio server. Was: Performance of ByteA: ascii vs binary
  In-Reply-To: <ab65a4a3-d619-b6cc-fea1-efdb4790a6f9@aklaver.com>
  References: <c861b16d-29cb-47ee-6c22-e15f608928b6@thomas-guettler.de> <8002ab5d-64b9-46c9-c2f4-62d03dd18cf3@aklaver.com> <2888.1552920585@sss.pgh.pa.us> <4cb74bcb-ca70-3677-d6f8-87d859d660ff@thomas-guettler.de> <ab65a4a3-d619-b6cc-fea1-efdb4790a6f9@aklaver.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