Re: Creating tons of tables to support a query

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Creating tons of tables to support a query
Дата
Msg-id 20020908194748.E8314-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Creating tons of tables to support a query  (Jan Ploski <jpljpl@gmx.de>)
Список pgsql-general
On Sun, 8 Sep 2002, Jan Ploski wrote:

> I am in particular wondering, why an index on message(sectionID, dateSent)
> does not make these queries comparably fast:
>
>     select msgnum from message where
>         sectionID = ? and
>         dateSent > ?
>         order by dateSent
>         limit 1;

I don't think that'll use an index on (sectionID, dateSent) for the sort
step.  I think an index on (dateSent,sectionID) might be, however.




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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Australian Open Source Awards
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: Australian Open Source Awards