From: | Benedict Holland <benedict(dot)m(dot)holland(at)gmail(dot)com> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | Estevan Rech <softrech(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Best Strategy for Large Number of Images |
Date: | 2021-12-15 21:47:19 |
Message-ID: | CAD+mzoyG-21b+xBYjShhbf3SofZdE-erp0ehsvyfA=v4pgtO1g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I would recommend storing a link to the file rather than the file itself.
Other than that, use BLOBS. I would probably recommend not storing any
binary objects in a database for a variety of reasons but if you have to
then bytea will work, assuming they are smaller than 2gb.
Thanks,
- Ben
On Wed, Dec 15, 2021, 4:41 PM Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> On Wed, Dec 15, 2021 at 02:45:15PM -0300, 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?
>
> You might want to read this:
>
> https://momjian.us/main/blogs/pgblog/2020.html#June_19_2020
>
> --
> Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
> EDB https://enterprisedb.com
>
> If only the physical world exists, free will is an illusion.
>
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Bèrto ëd Sèra | 2021-12-15 22:11:15 | Re: Best Strategy for Large Number of Images |
Previous Message | Bruce Momjian | 2021-12-15 21:41:30 | Re: Best Strategy for Large Number of Images |