Re: Speeding query

Поиск
Список
Период
Сортировка
От Tom Jenkins
Тема Re: Speeding query
Дата
Msg-id 1019740649.12165.57.camel@asimov
обсуждение исходный текст
Ответ на Speeding query  (Uros Gruber <uros@sir-mag.com>)
Список pgsql-general
On Wed, 2002-04-24 at 16:54, Uros Gruber wrote:
>
> select d.title from table1 d, table2 c where c.id_category='09' and d.id_entry=c.id_entry;
>
>
> I see that there is seq scan over 25k rows, how can i set
> indexes to make query faster and use indexes.
>

try setting an index on table2's id_entry.  your index on table2 is a
compound index with id_entry as the second field; so no indexes match
just table2's id_entry.
--

Tom Jenkins
Development InfoStructure
http://www.devis.com



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

Предыдущее
От: Alban Médici
Дата:
Сообщение: Plpgsql get record value without colunm name ???
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Help with performance