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 1gfNxq-0002AX-J3 for pgsql-general@arkaria.postgresql.org; Fri, 04 Jan 2019 11:48:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gfNxo-0001xa-Jg for pgsql-general@arkaria.postgresql.org; Fri, 04 Jan 2019 11:48:32 +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 1gfNxo-0001vd-9P for pgsql-general@lists.postgresql.org; Fri, 04 Jan 2019 11:48:32 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gfNxh-00021L-Ho for pgsql-general@lists.postgresql.org; Fri, 04 Jan 2019 11:48:31 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id x04BmDD7005835 for ; Fri, 4 Jan 2019 13:48:18 +0200 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id x04BmDD7059144 for ; Fri, 4 Jan 2019 13:48:13 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Use bytearray for blobs or not? To: pgsql-general@lists.postgresql.org References: From: Achilleas Mantzios Message-ID: <07d16f3f-0352-7802-ef1c-bd9987ec623b@matrix.gatewaynet.com> Date: Fri, 4 Jan 2019 13:48:13 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.7 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-25.0 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,DYN_HAM_SIGNAT1,DYN_SPAM_SUBJ autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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). > > Which alternatives could be useful? > > Regards, >   Thomas > > > > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt