pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedminio server. Was: Performance of ByteA: ascii vs binary
3+ messages / 2 participants
[nested] [flat]
* minio server. Was: Performance of ByteA: ascii vs binary
@ 2019-03-18 14:59 Thomas Güttler <guettliml@thomas-guettler.de>
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Güttler @ 2019-03-18 14:59 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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.
--
Thomas Guettler http://www.thomas-guettler.de/
I am looking for feedback: https://github.com/guettli/programming-guidelines
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: minio server. Was: Performance of ByteA: ascii vs binary
@ 2019-03-18 16:52 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Thomas Güttler <guettliml@thomas-guettler.de>
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Klaver @ 2019-03-18 16:52 UTC (permalink / raw)
To: Thomas Güttler <guettliml@thomas-guettler.de>; pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: minio server. Was: Performance of ByteA: ascii vs binary
@ 2019-03-19 08:24 Thomas Güttler <guettliml@thomas-guettler.de>
parent: Adrian Klaver <adrian.klaver@aklaver.com>
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Güttler @ 2019-03-19 08:24 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Am 18.03.19 um 17:52 schrieb Adrian Klaver:
> 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?
No, I did not test it outside Python/psycopg2.
Since our code will use Python/psycopg2 I did not run a test outside.
The decision was made. Now I am busy learning minio. I use it for the first time.
Regards,
Thomas Güttler
--
Thomas Guettler http://www.thomas-guettler.de/
I am looking for feedback: https://github.com/guettli/programming-guidelines
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2019-03-19 08:24 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-03-18 14:59 minio server. Was: Performance of ByteA: ascii vs binary Thomas Güttler <guettliml@thomas-guettler.de>
2019-03-18 16:52 ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-03-19 08:24 ` Thomas Güttler <guettliml@thomas-guettler.de>
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