Re: Efficient date range search?

Поиск
Список
Период
Сортировка
Искать
От
Shridhar Daithankar
Тема
Re: Efficient date range search?
Дата
Msg-id
3DA2BF39.29493.13D4370C@localhost
Ответ на
Список
Дерево обсуждения
Efficient date range search? mvh@ix.netcom.com
Re: Efficient date range search? "Shridhar Daithankar" <shridhar_daithankar@persistent.co.in>
On 7 Oct 2002 at 13:32, Jean-Luc Lachance wrote:

> > select * from pets where died > [date] or died is null;
> Then you're back to whole table scan... :(

Well, if there is an index on died, it's rather an indexed scan as opposed to a 
sequential scan as you are mentioning(hopefully).

Indexed scan are usually pretty quick if you select small amount of data from 
entire table set. e.g.  10 pets from a million tuples..

Bye
 Shridhar

--
character density, n.:	The number of very weird people in the office.

В списке pgsql-general по дате отправления
От: Shridhar Daithankar
Дата:
Сообщение: Re: [HACKERS] Hot Backup
От: Savita
Дата:
Сообщение: How to find out about index
FAQ