Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxYQ1-0003Ec-Af for pgsql-general@arkaria.postgresql.org; Wed, 15 Dec 2021 17:50:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mxYPz-00089S-HT for pgsql-general@arkaria.postgresql.org; Wed, 15 Dec 2021 17:50:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxYPz-00089I-6b for pgsql-general@lists.postgresql.org; Wed, 15 Dec 2021 17:50:19 +0000 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mxYPx-0001PX-9H for pgsql-general@lists.postgresql.org; Wed, 15 Dec 2021 17:50:18 +0000 Received: by mail-il1-x12f.google.com with SMTP id d17so2063711ils.8 for ; Wed, 15 Dec 2021 09:50:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to; bh=sFSncl6EBAUMePUp/vM5A4Lc8mPTMj+vaLa9j1W9Ksk=; b=GvpvkJc7YN8W8dVeNKBSSM6wPw9/jgesHkU700Ol3626kmkzcNbVkA76pDkD2ZMUxd 8puffNI75xpQ080igYyGVbIvdjl3lIEGMXCCLNsa4QL2Vu8y4qZRThEuNon0lqsn7UV4 gJHS7l1vf7peJtBqhapxtNU27T91CdBjaYfffJ5JKOLijwoo3jtqO1Qj93PwCWCWWtdQ h91sCWfKPGJ7tZoa97aIwVsZPHg2lJ1FuViGnLB78tsF2ZSKDEecutViT4giGa3Bu72Q 2QBfKrJfOsrgd61XVNpvV8BReUBNpSMw3jXa5mA+PfQZgzjHW04nqVa0uf5GlkFfTOW4 n+tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to; bh=sFSncl6EBAUMePUp/vM5A4Lc8mPTMj+vaLa9j1W9Ksk=; b=w8/kSsaxEi5O+wLTj1x8IBp6R/XTTppHHmhybwZb3vU+okkLNCSJQHFTa+d6RqV8Jj KJ5J61dN1N4q27DpqJjz/3G8q01YKQzZH3K/gA3by+De368FqHVHtoJM4qRFhW7fsD7l FsCAemjQ2oPeomRgORW6dvTT7sbM6n9GEPOYT63JGsESEXWY4U/tS4aNW/99fiboMm9V w2XHpJe59f/D1pOhGHi709IzEUw4NaLCmaxue4Jj+dGK81vBC7YrB9EOWdDeVUpWXwoj yMUD7fOCzvaTvRYy1qjH3V1r8yYCqJ8FiVcDT7zgDhkb7aC5gNmJOVyKp2PnvY6NlgZb cE5Q== X-Gm-Message-State: AOAM530gKybNxIM33/ud6rhbVfrDDen6HYdNlFDJ+gckjAoj2T9NHRd8 eA20DRf8+u3BN9MNbYtLgAzBO0TVAyw= X-Google-Smtp-Source: ABdhPJw6i2Gygnj+uIM5kLv8QtGl+9fDf13pJ8evpcWbQCiybRr1E/PsQUc81gxx/0PhUFIaKOVGbQ== X-Received: by 2002:a05:6e02:20e5:: with SMTP id q5mr7042156ilv.84.1639590615131; Wed, 15 Dec 2021 09:50:15 -0800 (PST) Received: from [10.0.0.94] (c-73-63-59-118.hsd1.ut.comcast.net. [73.63.59.118]) by smtp.gmail.com with ESMTPSA id s7sm1240428ilu.29.2021.12.15.09.50.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Dec 2021 09:50:14 -0800 (PST) Content-Type: multipart/alternative; boundary="------------KCGjxeTc15USaPB4x8FtHGwz" Message-ID: Date: Wed, 15 Dec 2021 10:50:13 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: Best Strategy for Large Number of Images Content-Language: en-CA To: pgsql-general@lists.postgresql.org References: From: Rob Sargent In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------KCGjxeTc15USaPB4x8FtHGwz Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/15/21 10:45, Estevan Rech wrote: > Hi, > > I don't currently use PostgreSQL, but I plan to migrate and I have a > question about the best way/strategy for storing images. I have about > 2 million images with a growth trend of around 1 million images per > year. I plan to store in bytea format in an isolated table. Is this > recommended? Is there another better way? > How big are the images on average? --------------KCGjxeTc15USaPB4x8FtHGwz Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 12/15/21 10:45, Estevan Rech wrote:
Hi,

I don't currently use PostgreSQL, but I plan to migrate and I have a question about the best way/strategy for storing images. I have about 2 million images with a growth trend of around 1 million images per year. I plan to store in bytea format in an isolated table. Is this recommended? Is there another better way?

How big are the images on average?
--------------KCGjxeTc15USaPB4x8FtHGwz--