Questions about indexes

Поиск
Список
Период
Сортировка
От Pat Maddox
Тема Questions about indexes
Дата
Msg-id 810a540e0606101330m425c8195r6632acf0c58a7e78@mail.gmail.com
обсуждение исходный текст
Ответы Re: Questions about indexes
Список pgsql-general
I've got a table with that has 5 fields.  Nearly every query I make to
this table is of the form
SELECT * FROM table1 WHERE field1='foo' AND field2=7;

It's always those two exact fields.  How should I index this to get
the best performance?

Also, how can I find what other parts of my app would benefit from more indexes?

Thanks,
Pat

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

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: Logging and Viewing SQL History
Следующее
От: John Gray
Дата:
Сообщение: Re: pgxml & xpath_table