Re: indexing timestamp fields

Поиск
Список
Период
Сортировка
От Christopher Browne
Тема Re: indexing timestamp fields
Дата
Msg-id 60wub6wjxf.fsf@dev6.int.libertyrms.info
обсуждение исходный текст
Ответы Re: indexing timestamp fields  (teknokrat <teknokrat@yahoo.com>)
Список pgsql-sql
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;
-- 
"cbbrowne","@","libertyrms.info"
<http://dev6.int.libertyrms.com/>
Christopher Browne
(416) 646 3304 x124 (land)


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

Предыдущее
От: limr@yahoo.com (robert)
Дата:
Сообщение: Re: Escaping the $1 parameter in stored procedures
Следующее
От: "Muhyiddin A.M Hayat"
Дата:
Сообщение: Calc