From: Thomas Güttler <guettliml@thomas-guettler.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Use bytearray for blobs or not?
Date: Fri, 4 Jan 2019 14:15:56 +0100
Message-ID: <01e65f2d-a6cc-871a-e3b8-7f6a70118e59@thomas-guettler.de> (raw)
In-Reply-To: <07d16f3f-0352-7802-ef1c-bd9987ec623b@matrix.gatewaynet.com>
References: <f68a818c-7d7a-d73c-16b0-726dfe2e2e55@thomas-guettler.de>
<07d16f3f-0352-7802-ef1c-bd9987ec623b@matrix.gatewaynet.com>
Am 04.01.19 um 12:48 schrieb Achilleas Mantzios:
> On 4/1/19 1:41 μ.μ., Thomas Güttler wrote:
>> Some months ago I wrote a little application with Python+Django which stores
>> blob data in bytearrays.
>>
>> It works.
>>
>> In the future there will be a lot more traffic, and I am unsure
>> if this is really a good solution. I know this is more FUD than
>> concrete PG issue.
>>
>> What do you think?
>
> Performance (at least for JDBC) is known to be better with blobs.
> However, with bytea life is just easier for many reasons (backups, logical replication, other types of replication, sys
> management, etc).
I could switch to a s3 like storage server, too. Up to now, this would only be
some lines of code. I could store the s3 IDs in postgres.
--
Thomas Guettler http://www.thomas-guettler.de/
I am looking for feedback: https://github.com/guettli/programming-guidelines
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: guettliml@thomas-guettler.de
Subject: Re: Use bytearray for blobs or not?
In-Reply-To: <01e65f2d-a6cc-871a-e3b8-7f6a70118e59@thomas-guettler.de>
References: <f68a818c-7d7a-d73c-16b0-726dfe2e2e55@thomas-guettler.de> <07d16f3f-0352-7802-ef1c-bd9987ec623b@matrix.gatewaynet.com> <01e65f2d-a6cc-871a-e3b8-7f6a70118e59@thomas-guettler.de>
* 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