Re: IoT/sensor data and B-Tree page splits

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: IoT/sensor data and B-Tree page splits
Дата
Msg-id CAH2-Wzn0f=ETH=e4GEeZGyme5RjJQunZVfV9Z8nqeXib6U3Awg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: IoT/sensor data and B-Tree page splits  (Arcadiy Ivanov <arcadiy@gmail.com>)
Список pgsql-hackers
On Mon, Aug 26, 2019 at 4:59 PM Arcadiy Ivanov <arcadiy@gmail.com> wrote:
> But apart from TPC-E and having to perform to it, is there any practical
> real world usefulness in trying to have a B-tree index on TS-based data
> just to have a PK on it, as opposed to having a BRIN on a TS field and
> calling it a day?

The index in question isn't an index on a timestamp. Its leading
column is an integer that is almost monotonically increasing, but not
quite.

If a BRIN index works for you, then that's probably what you should
use. I don't think that that's relevant, though. BRIN indexes have
clear disadvantages, including the fact that you have to know that
your data is amenable to BRIN indexing in order to use a BRIN index.

-- 
Peter Geoghegan



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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: old_snapshot_threshold vs indexes
Следующее
От: Ashwin Agrawal
Дата:
Сообщение: Re: Zedstore - compressed in-core columnar storage