Re: constraint with reference to the same table

Поиск
Список
Период
Сортировка
От Rudi Starcevic
Тема Re: constraint with reference to the same table
Дата
Msg-id 3EC2F81B.10001@oasis.net.au
обсуждение исходный текст
Ответ на Re: constraint with reference to the same table  (Rudi Starcevic <rudi@oasis.net.au>)
Ответы Re: constraint with reference to the same table  (Victor Yegorov <viy@nordlb.lv>)
Список pgsql-performance
Perhaps I also need a 3rd Index ?

One for Business's
One for People and
One for Business_People.

I think I may need the 3rd Index for query's like

Select b_id
 From business_people
where b_id = 1 and pn_id = 2;

I think this way I have an Index for 3 type's of queries.

When I looking for data on just the business,
when I'm looking for data on just people and
when I'm looking for data on business people relationships.

Cheers
Rudi.


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

Предыдущее
От: Rudi Starcevic
Дата:
Сообщение: Re: constraint with reference to the same table
Следующее
От: Victor Yegorov
Дата:
Сообщение: Re: constraint with reference to the same table