Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gfPKD-0007LS-GM for pgsql-general@arkaria.postgresql.org; Fri, 04 Jan 2019 13:15:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gfPKC-00049Q-AT for pgsql-general@arkaria.postgresql.org; Fri, 04 Jan 2019 13:15:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gfPKC-00049C-2F for pgsql-general@lists.postgresql.org; Fri, 04 Jan 2019 13:15:44 +0000 Received: from hz1.yz.to ([2a01:4f8:120:9383::2]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gfPK9-00048R-4N for pgsql-general@lists.postgresql.org; Fri, 04 Jan 2019 13:15:43 +0000 Received: from [172.17.6.34] (mail.tbz-pariv.de [146.0.121.193]) by hz1.yz.to (Postfix) with ESMTPSA id 6453F8197034 for ; Fri, 4 Jan 2019 14:15:38 +0100 (CET) Subject: Re: Use bytearray for blobs or not? To: pgsql-general@lists.postgresql.org References: <07d16f3f-0352-7802-ef1c-bd9987ec623b@matrix.gatewaynet.com> From: =?UTF-8?Q?Thomas_G=c3=bcttler?= Message-ID: <01e65f2d-a6cc-871a-e3b8-7f6a70118e59@thomas-guettler.de> Date: Fri, 4 Jan 2019 14:15:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <07d16f3f-0352-7802-ef1c-bd9987ec623b@matrix.gatewaynet.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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