Re: indexing timestamp fields

Поиск
Список
Период
Сортировка
От teknokrat
Тема Re: indexing timestamp fields
Дата
Msg-id bmkafb$aiu$1@news.hub.org
обсуждение исходный текст
Ответ на Re: indexing timestamp fields  (Christopher Browne <cbbrowne@libertyrms.info>)
Ответы Re: indexing timestamp fields  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-sql
Christopher Browne wrote:

> teknokrat <teknokrat@yahoo.com> writes:
> 
>>Is it a good idea to index timestamp fields? what about date fields in
>>general?
> 
> 
> If you need to order by a timestamp, then it can be worthwhile.
> 
> If that timestamp can be null, and is rarely populated, then you might
> get a _big_ benefit from creating a partial index as with:
> 
>  create index by_some_date on my_table(some_date) where some_date is
>    not null;

I have a lot of queries of the " where timestamp < some date " type and 
was wondering if an index would improve performance. None of the 
timestamps are null and they are always populated



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

Предыдущее
От: "R. van Twisk"
Дата:
Сообщение: Re: Sorting problem
Следующее
От: teknokrat
Дата:
Сообщение: indexing timestamp fields