Search Postgresql Archives

Re: Should I partition this table?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 10, 2014 at 11:36 AM, AlexK <alkuzo@xxxxxxxxx> wrote:
Kevin,

What would be the advantages of partitioning on ranges of ParentID? Each
query will touch at most one partition. I might or might not get PK indexes
one level of depth less.

I understand that I will CLUSTER these smaller tables and benefit from that.
Other than clustering, what are other advantages?

If you don't partition, it will take an unacceptably long time to run CLUSTER on the entire table.  If you do partition, you can CLUSTER one partition at a time, and only need to CLUSTER the fast-changing partitions more than once.  But based on your description, you probably don't need to run explicit CLUSTERs anyway as your data would end up naturally clustered.

Cheers,

Jeff

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux