Re: Optimize date query for large child tables: GiST or GIN?
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
To
: Tom Lane <
tgl@xxxxxxxxxxxxx
>
Subject
: Re: Optimize date query for large child tables: GiST or GIN?
From
: David Jarvis <
thangalin@xxxxxxxxx
>
Date
: Thu, 20 May 2010 12:58:16 -0700
Cc
: Thom Brown <
thombrown@xxxxxxxxx
>,
pgsql-performance@xxxxxxxxxxxxxx
In-reply-to
: <
7767.1274385170@xxxxxxxxxxxxx
>
References
: <
AANLkTimi_Jh4J6bLZ8lZ0cGQ0VVG7XPCKaFN9GRHd6mP@xxxxxxxxxxxxxx
> <
AANLkTinD2fOrHDGEXPmEid85FzKGMKCq7raTaBoAsBdV@xxxxxxxxxxxxxx
> <
AANLkTikKoZrb2i8XQaq-HVQ2Wxi9WXeclD3JefLiLMmk@xxxxxxxxxxxxxx
> <
AANLkTimZ9zIEebspkg8Iy8vhEeBhe-JLJeJiYPcW88sJ@xxxxxxxxxxxxxx
> <
AANLkTinTEyf_9ooDHv12vfsIuLihB2VqJ6NZGD2DnyHf@xxxxxxxxxxxxxx
> <
AANLkTimk7lRS8FHJOot3tF-c6Ds4jexCvWKEQNU1V0Xt@xxxxxxxxxxxxxx
> <
7143.1274382139@xxxxxxxxxxxxx
> <
AANLkTim7O3Aalp31WKwBuTufYXeUMQWkwy51nvRcI0QY@xxxxxxxxxxxxxx
> <
AANLkTikl8wlHPJaArMWO9XWgG0vk9tununw3eUAYh1IC@xxxxxxxxxxxxxx
> <
7767.1274385170@xxxxxxxxxxxxx
>
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
Follow-Ups
:
Re: Optimize date query for large child tables: GiST or GIN?
From:
Tom Lane
References
:
Optimize date query for large child tables: GiST or GIN?
From:
David Jarvis
Re: Optimize date query for large child tables: GiST or GIN?
From:
Thom Brown
Re: Optimize date query for large child tables: GiST or GIN?
From:
Tom Lane
Re: Optimize date query for large child tables: GiST or GIN?
From:
Thom Brown
Re: Optimize date query for large child tables: GiST or GIN?
From:
David Jarvis
Re: Optimize date query for large child tables: GiST or GIN?
From:
Tom Lane
Prev by Date:
Re: Optimize date query for large child tables: GiST or GIN?
Next by Date:
Re: Optimize date query for large child tables: GiST or GIN?
Previous by thread:
Re: Optimize date query for large child tables: GiST or GIN?
Next by thread:
Re: Optimize date query for large child tables: GiST or GIN?
Index(es):
Date
Thread
[Postgresql General]
[Postgresql PHP]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[PHP Books]
[PHP Databases]
[Yosemite]