Re: Reverse Key Index

Поиск
Список
Период
Сортировка
От Sven R. Kunze
Тема Re: Reverse Key Index
Дата
Msg-id 54EEFDA1.7020609@tbz-pariv.de
обсуждение исходный текст
Ответ на Re: Reverse Key Index  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: Reverse Key Index  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-performance
On 25.02.2015 23:31, Josh Berkus wrote:
> On 02/14/2015 10:35 AM, Sven R. Kunze wrote:
>> Thanks for the immediate reply.
>>
>> I understand the use case is quite limited.
>>
>> On the other hand, I see potential when it comes to applications which
>> use PostgreSQL. There, programmers would have to change a lot of code to
>> tweak existing (and more importantly working) queries to hash/reverse an
>> id column first. Using ORMs would make this change even more painful and
>> maybe even impossible.
>>
>> When reading
>> https://richardfoote.wordpress.com/2008/01/14/introduction-to-reverse-key-indexes-part-i/
>> carefully, it also seems to work with index scan partially in case of
>> equality comparisons.
> Seems like a good use for SP-GiST.  Go for it!
>

I just thought about btree indexes here mainly because they well-known
and well-used in ORM frameworks. Considering the documentation and
third-party posts on GiST and btree_gist, at least to me, it seems as if
people would not want to use that for integers; which in turn is the
main use-case scenario for reverse key indexes.

--
Sven R. Kunze
TBZ-PARIV GmbH, Bernsdorfer Str. 210-212, 09126 Chemnitz
Tel: +49 (0)371 33714721, Fax: +49 (0)371 5347920
e-mail: srkunze@tbz-pariv.de
web: www.tbz-pariv.de

Geschäftsführer: Dr. Reiner Wohlgemuth
Sitz der Gesellschaft: Chemnitz
Registergericht: Chemnitz HRB 8543



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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Reverse Key Index
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: Reverse Key Index