Re: Optimize date query for large child tables: GiST or GIN?

Поиск
Список
Период
Сортировка
От David Jarvis
Тема Re: Optimize date query for large child tables: GiST or GIN?
Дата
Msg-id AANLkTikOEC-Gr3eqGlyGauRAZJknQEaS5DEWw-ZOcl6r@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Optimize date query for large child tables: GiST or GIN?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Optimize date query for large child tables: GiST or GIN?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
What if I were to have the application pass in two sets of date ranges?

For the condition of Dec 22 to Mar 22:

Dec 22 would become:
  • Dec 22 - Dec 31
Mar 22 would become:
  • Jan 1 - Mar 22
The first range would always be for the current year; the second range would always be for the year following the current year.

Would that allow PostgreSQL to use the index?

Dave

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Optimize date query for large child tables: GiST or GIN?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Optimize date query for large child tables: GiST or GIN?