Index on multiple columns VS multiple index

Поиск
Список
Период
Сортировка
От Brice André
Тема Index on multiple columns VS multiple index
Дата
Msg-id CAOBG12m10zcGwHY_g8+Mwhs2sXjBvue5EqidHGj+pZtH3XFCXw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Index on multiple columns VS multiple index  ("Jonathan S. Katz" <jonathan.katz@excoventures.com>)
Список pgsql-sql
Hello everyone,

I have a question concerning index : suppose I have a table with fields 'a' and 'b' and that all requests perform WHERE clauses on 'a' field, and some requests also perform WHERE clauses on 'b' fields. What is the best approach for indexing strategy:
  • One index on 'a' and one on 'b'
  • One index on both columns 'a' and 'b'
  • A combination of both solutions ?

Thanks in advance,

Brice

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

Предыдущее
От: Achilleas Mantzios
Дата:
Сообщение: Re: Query caching (with 8.3)
Следующее
От: "Jonathan S. Katz"
Дата:
Сообщение: Re: Index on multiple columns VS multiple index