Re: Querying a time range across multiple partitions

Поиск
Список
Период
Сортировка
От Cal Heldenbrand
Тема Re: Querying a time range across multiple partitions
Дата
Msg-id CAAcwKhfJ8OQ-e_0xmZ-NJPJ1OxR=_qzwQf4yfw0mVYqM7WZLEA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Querying a time range across multiple partitions  (John R Pierce <pierce@hogranch.com>)
Список 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 по дате отправления:

Предыдущее
От: Cal Heldenbrand
Дата:
Сообщение: Re: Querying a time range across multiple partitions
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Re: [ADMIN] Cannot retrieve images inserted through VB and odbc, after a table reorganization.