From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Best Strategy for Large Number of Images
Date: Wed, 15 Dec 2021 13:23:56 -0600
Message-ID: <f930c152-7238-0b42-6cab-88f2027a4ade@gmail.com> (raw)
In-Reply-To: <CAJZXSXjNC7jf5Z0fdWW09NupOG3KcvX7hDK-abNLcnOj6vwMgQ@mail.gmail.com>
References: <CAJZXSXjNC7jf5Z0fdWW09NupOG3KcvX7hDK-abNLcnOj6vwMgQ@mail.gmail.com>
On 12/15/21 11:45 AM, 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?
We have an application which store images in the database using bytea
fields. The next version of the software will store the images externally,
with the filename in the database, because filesystems just inherently do a
better job at storing *lots* of files than does a database.
--
Angular momentum makes the world go 'round.
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: ronljohnsonjr@gmail.com
Subject: Re: Best Strategy for Large Number of Images
In-Reply-To: <f930c152-7238-0b42-6cab-88f2027a4ade@gmail.com>
References: <CAJZXSXjNC7jf5Z0fdWW09NupOG3KcvX7hDK-abNLcnOj6vwMgQ@mail.gmail.com> <f930c152-7238-0b42-6cab-88f2027a4ade@gmail.com>
* 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