From: | Nicolas Grilly <nicolas(at)gardentechno(dot)com> |
---|---|
To: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Cc: | msofen(at)runbox(dot)com |
Subject: | Re: Clustered index to preserve data locality in a multitenant application? |
Date: | 2016-08-31 15:40:51 |
Message-ID: | CAG3yVS4xT2Ruz4OHBDWvsedc6QRr11+8p2hcv_t7Uh7qR_Wkbg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Mike Sofen wrote:
> For Nicolas’s situation, that would require 10,000 partitions – not very
> useful, and each partition would be very small.
>
This is exactly my conclusion about using partitions in my situation.
> In Postgres, as you mentioned, clustering is a “one time” operation but
> only in the sense that after you add more rows, you’ll need to re-cluster
> the table. Depending on the activity model for that table, that may be
> feasible/ok. For example, if you load it via regular batch scripts, then
> the clustering could be done after those loads. If you add rows only
> rarely but then do lots of updates, then the clustering would work great.
> If this is an active real time data table, then clustering would not be
> viable.
>
The application is very interactive and news rows are inserted all the time
in my use case.
Thanks for your time,
Nicolas
From | Date | Subject | |
---|---|---|---|
Next Message | Kenneth Marshall | 2016-08-31 16:05:20 | Re: Clustered index to preserve data locality in a multitenant application? |
Previous Message | Nicolas Grilly | 2016-08-31 15:33:18 | Re: Clustered index to preserve data locality in a multitenant application? |