Re: Slow queries on very big (and partitioned) table

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Slow queries on very big (and partitioned) table
Date: 2017-02-20 17:23:48
Message-ID: 3144609e-7dbc-0b77-471e-e13417f8d46a@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/20/2017 5:22 AM, Stephen Frost wrote:
> You probably shouldn't be partitioning by day for such a small dataset,
> unless you've only got a few days worth of data that make up those 800m
> records.

agreed. we do like 6 months retention by weeks, so there's 26 or so
partitions, that is reasonable.

the primary reason for the partitions is to make it easy to drop old
data by pruning a whole partition.

--
john r pierce, recycling bits in santa cruz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rakesh Kumar 2017-02-20 19:27:34 Using xmin and xmax for optimistic locking
Previous Message Steven Winfield 2017-02-20 15:02:21 Re: R: Slow queries on very big (and partitioned) table