Question about clustering multiple columns

Поиск
Список
Период
Сортировка
От Benjamin Arai
Тема Question about clustering multiple columns
Дата
Msg-id 002e01c68f03$05f00e10$6501a8c0@uni
обсуждение исходный текст
Ответы Re: Question about clustering multiple columns  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-general
Hi,
 
I have a database where there are three columns (name,date,data).  The queries are almost always something like SELECT date,data FROM table WHERE name=blah AND date > 1/1/2005 AND date < 1/1/2006;.  I currently have three B-tree indexes, one for each of the columns.  Is clustering on date index going to be what I want, or do I need a index that contains both name and date?
 
Вложения

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

Предыдущее
От: John Gunther
Дата:
Сообщение: Forcing backslash to be treated as ordinary string character
Следующее
От: "jdwatson1@gmail.com"
Дата:
Сообщение: Re: Searching BLOB - Lucene setup & problem