pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 09:58:40 -0500
Message-ID: <0ca2695b-b545-8593-8137-90d6ab6835b9@gmail.com> (raw)
In-Reply-To: <CAFCRh--KMuUHPvSb5KL6TJoJmykwQTgh3mAfP4B3KxHMULXMTw@mail.gmail.com>
References: <CAFCRh--KMuUHPvSb5KL6TJoJmykwQTgh3mAfP4B3KxHMULXMTw@mail.gmail.com>

On 10/19/22 04:47, Dominique Devienne wrote:
[snip]
> PS: Another drawback of lo is that because it's a single table, it
> still subject to the 32 TB limit on a relation.
>    The 4TB limit per lo is way more than we need, but the 32 TB limit
> may actually be more of an issue for
>    our larger clients, which have thousands of projects, each with
> upwards of a few millions of those blobs.

Partition the table on the first segment of the Primary Key.  From 
experience, anything else can lead to serious query degradation.

-- 
Angular momentum makes the world go 'round.





view thread (23+ messages)  latest in thread

Message-ID: <0ca2695b-b545-8593-8137-90d6ab6835b9@gmail.com>
Permalink:  ../0ca2695b-b545-8593-8137-90d6ab6835b9@gmail.com/
Also on:    postgresql.org/message-id/0ca2695b-b545-8593-8137-90d6ab6835b9@gmail.com

 · 

reply

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: <0ca2695b-b545-8593-8137-90d6ab6835b9@gmail.com>
  References: <CAFCRh--KMuUHPvSb5KL6TJoJmykwQTgh3mAfP4B3KxHMULXMTw@mail.gmail.com> <0ca2695b-b545-8593-8137-90d6ab6835b9@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