From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to store "blobs" efficiently for small and large sizes, with random access
Date: Wed, 19 Oct 2022 10:04:10 -0500
Message-ID: <a9222d92-7163-5009-034d-bdd181e46819@gmail.com> (raw)
In-Reply-To: <VisenaEmail.8c.b06498274ef2e53f.183f001419c@visena.app.internal.visena.net>
References: <CAFCRh--KMuUHPvSb5KL6TJoJmykwQTgh3mAfP4B3KxHMULXMTw@mail.gmail.com>
<VisenaEmail.7f.ed5f0eef3b438b59.183efbb4151@visena.app.internal.visena.net>
<CAFCRh-976riSPX=MVcN5a5KgGa1JUEmx3b3NUbGP2CCjtjyVag@mail.gmail.com>
<VisenaEmail.82.e066ad7b12bc6395.183efe1326d@visena.app.internal.visena.net>
<CAFCRh-88m7Upu__QhMZ64ccu3iA8HAHLa5fFoNoqnAOHHc8d2w@mail.gmail.com>
<VisenaEmail.8c.b06498274ef2e53f.183f001419c@visena.app.internal.visena.net>
On 10/19/22 06:38, Andreas Joseph Krogh wrote:
> På onsdag 19. oktober 2022 kl. 13:21:38, skrev Dominique Devienne
> <ddevienne@gmail.com>:
>
> On Wed, Oct 19, 2022 at 1:00 PM Andreas Joseph Krogh
> <andreas@visena.com> wrote:
> > Ok, just something to think about;
>
> Thank you. I do appreciate the feedback.
>
> > Will your database grow beyond 10TB with blobs?
>
> The largest internal store I've seen (for the subset of data that goes
> in the DB) is shy of 3TB.
> But we are an ISV, not one of our clients, which have truly massive
> scale for data.
> And they don't share the exact scale of their proprietary data with me...
>
> > If so try to calculate how long it takes to restore, and comply with
> SLA,
> > and how long it would have taken to restore without the blobs.
>
> Something I don't quite get is why somehow backup is no longer needed
> if the large blobs are external?
> i.e. are you saying backups are so much more worse in PostgreSQL than
> with the FS? I'm curious now.
>
> I'm not saying you don't need backup (or redundancy) of other systems
> holding blobs, but moving them out of RDBMS makes you restore the DB to a
> consistent state, and able to serve clients, faster. In my experience It's
> quite unlikely that your (redundant) blob-store needs crash-recovery at
> the same time you DB does. The same goes with PITR, needed because of some
> logical error (like client deleted some data they shouldn't have), which
> is much faster without blobs in DB and doesn't affect the blobstore at all
> (if you have a smart insert/update/delete-policy there).
>
This is nothing to sneeze at. Backing up a 30TB database takes a *long* time
> Also, managing the PostgreSQL server will be the client's own concern
> mostly. We are not into Saas here.
> As hinted above, the truly massive data is already not in the DB, used
> by different systems, and processed
> down to the GB sized inputs all the data put in the DB is generated
> from. It's a scientific data heavy environment.
> And one where security of the data is paramount, for contractual and
> legal reasons. Files make that harder IMHO.
>
> Anyways, this is straying from the main theme of this post I'm afraid.
> Hopefully we can come back on the main one too. --DD
>
> There's a reason “everybody” advices to move blobs out of DB, I've learned.
>
We deal with an ISV maintaining a banking application. It stores scanned
images of checks as bytea fields in a Postgresql 9.6 database. The next
version will store the images outside of the database.
> --
> *Andreas Joseph Krogh*
> CTO / Partner - Visena AS
> Mobile: +47 909 56 963
> andreas@visena.com
> www.visena.com <https://www.visena.com;
> <https://www.visena.com;
--
Angular momentum makes the world go 'round.
Attachments:HjBPH0ZzYImO3Bgh.png (image/png, 1.9K) downloadview image
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: How to store "blobs" efficiently for small and large sizes, with random access
In-Reply-To: <a9222d92-7163-5009-034d-bdd181e46819@gmail.com>
References: <CAFCRh--KMuUHPvSb5KL6TJoJmykwQTgh3mAfP4B3KxHMULXMTw@mail.gmail.com> <VisenaEmail.7f.ed5f0eef3b438b59.183efbb4151@visena.app.internal.visena.net> <CAFCRh-976riSPX=MVcN5a5KgGa1JUEmx3b3NUbGP2CCjtjyVag@mail.gmail.com> <VisenaEmail.82.e066ad7b12bc6395.183efe1326d@visena.app.internal.visena.net> <CAFCRh-88m7Upu__QhMZ64ccu3iA8HAHLa5fFoNoqnAOHHc8d2w@mail.gmail.com> <VisenaEmail.8c.b06498274ef2e53f.183f001419c@visena.app.internal.visena.net> <a9222d92-7163-5009-034d-bdd181e46819@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