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 1h5vV2-00011B-Fb for pgsql-general@arkaria.postgresql.org; Mon, 18 Mar 2019 16:52:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h5vV0-00012T-Df for pgsql-general@arkaria.postgresql.org; Mon, 18 Mar 2019 16:52:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5vUy-00012G-KZ for pgsql-general@lists.postgresql.org; Mon, 18 Mar 2019 16:52:30 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5vUu-0002CO-VU for pgsql-general@lists.postgresql.org; Mon, 18 Mar 2019 16:52:27 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D5D6522125; Mon, 18 Mar 2019 12:52:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 18 Mar 2019 12:52:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=x zQeO7o89FJGl4M1QAoVCujJT4wsigBxjf6rnE2kHhw=; b=oOkoJECR3FPRAMvMz 44DrgpejAeAgiUngMvBEtZa+kQICWP07hAGCkMNESN7wm9ScTZhoupP8CoMyEX4E tHPaV7lKlF7LE6Z/cEARzP7PnpvxOGRY6/6Svego249aXadldSQ7BRcGB6/fo3L2 cNgKDVR8Rc6sN6LMwC6iQiSdxkL/uSvbjc1e7msSpRj9IxBFSERNjVfHfMfnjCq7 wlXu+SwC0ReBNxxpq8gtHLtNOGSnGkGqkSe5QwTr/uaeKvg3KnVqdY1x00SCuejy 8BCM+QmWYvkwD+xAOlUXfkGC///sDdrQGOhVyUwPZBMEnhWcXi6/WxpoaWSwnr1E fdOsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=xzQeO7o89FJGl4M1QAoVCujJT4wsigBxjf6rnE2kH hw=; b=oUwSBYfCTQ+X8CQEc2cCRUHaxe614TOr97fsBdFYyWaNKobyaMWRW0fDN HZ10hfrMx3i6kKlpoKTK6qE5T7k0AInp2be/cnSsozegguejWf+3250xkZM8qj6F 7iQ0pYMHSU9EK20vKi6N6+VPl5it1ALZyMWc2gIo2kbNco4Fui6VCWRJuxYtw8OG ZaS3IfnJMd8itLsioIcV6HYhHn/YHd3yqgJdW1LTp+100cR1kLCNCKLZKkxguLn1 JPKpfpcSA/s0d1ZKulbK6/KzrlDEGQcIaEd/a8GC6evOCZclmGj6GdoHjwEhhgwK 0AMqgHdgikM0P8croR1RY1TGWgb/g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddriedugdelhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucffohhmrghinhepihhnihhtugdrohhrgh enucfkphepjeegrdelgedrjeefrddvvddvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegr ughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuih iivgeptd X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id 6CF7CE4684; Mon, 18 Mar 2019 12:52:22 -0400 (EDT) Subject: Re: minio server. Was: Performance of ByteA: ascii vs binary To: =?UTF-8?Q?Thomas_G=c3=bcttler?= , pgsql-general@lists.postgresql.org References: <8002ab5d-64b9-46c9-c2f4-62d03dd18cf3@aklaver.com> <2888.1552920585@sss.pgh.pa.us> <4cb74bcb-ca70-3677-d6f8-87d859d660ff@thomas-guettler.de> From: Adrian Klaver Message-ID: Date: Mon, 18 Mar 2019 09:52:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <4cb74bcb-ca70-3677-d6f8-87d859d660ff@thomas-guettler.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/18/19 7:59 AM, Thomas Güttler wrote: > > > Am 18.03.19 um 15:49 schrieb Tom Lane: >> Adrian Klaver 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