Re: Which partition scheme makes sense for my time based IoT-datagrams?

Поиск
Список
Период
Сортировка
От Peter J. Holzer
Тема Re: Which partition scheme makes sense for my time based IoT-datagrams?
Дата
Msg-id 20210211140341.GB1603@hjp.at
обсуждение исходный текст
Ответ на Which partition scheme makes sense for my time based IoT-datagrams?  (Thorsten Schöning<tschoening@am-soft.de>)
Ответы Re: Which partition scheme makes sense for my time based IoT-datagrams?  (Thorsten Schöning<tschoening@am-soft.de>)
Список pgsql-general
On 2021-02-10 16:09:30 +0100, Thorsten Schöning wrote:
> I have a table storing datagrams from some IoT-devices, with one
> datagram per device per day most likely for around 75'000 devices
> currently. I want to test query performance with a partitioned table
> and am interested in the following queries mostly:
>
> * querying arbitrary datagrams by their ID
> * querying datagrams being X old based on some timestamp
>   * 15 minutes

If you get one datagram per day, how it is useful to query all datagrams
received in the last 15 minutes? That's either a random sample (if
devices report at random times) or empty (if they all report at midnight
and it isn't just after midnight).

        hp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: SV: Insertion time is very high for inserting data in postgres
Следующее
От: Brajendra Pratap
Дата:
Сообщение: Re: Unable to execute Query in parallel for partitioned table