Re: Querying a time range across multiple partitions - Mailing list pgsql-general

From Cal Heldenbrand
Subject Re: Querying a time range across multiple partitions
Date
Msg-id CAAcwKhfJ8OQ-e_0xmZ-NJPJ1OxR=_qzwQf4yfw0mVYqM7WZLEA@mail.gmail.com
Whole thread Raw
In response to Re: Querying a time range across multiple partitions  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
This particular use case is for user behavior data mining.  The hardware is beefy, and has tablespaces split out onto SSD/spindle for new & old data.  All of my queries are pretty much a nightly cron process, and I don't really care too much about the speed.  Scanning the full 4 years of data takes about 30 seconds per query anyway... but I thought it'd be nice to speed it up when the difference is milliseconds vs 30 seconds.


On Fri, Sep 5, 2014 at 4:17 PM, John R Pierce <pierce@hogranch.com> wrote:
On 9/5/2014 10:31 AM, Cal Heldenbrand wrote:
Number of child tables: 1581

that's an insane number of children.    We try and limit it to 50 or so child tables, for instance, 6 months retention by week, of data will millions of rows/day.



-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast

pgsql-general by date:

Previous
From: Cal Heldenbrand
Date:
Subject: Re: Querying a time range across multiple partitions
Next
From: Adrian Klaver
Date:
Subject: Re: Re: [ADMIN] Cannot retrieve images inserted through VB and odbc, after a table reorganization.