Re: Modeling Friendship Relationships

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Modeling Friendship Relationships
Дата
Msg-id 20141120152513.GJ1639@alvin.alvh.no-ip.org
обсуждение исходный текст
Ответ на Modeling Friendship Relationships  (Robert DiFalco <robert.difalco@gmail.com>)
Список pgsql-general
Robert DiFalco wrote:
> I have a question about modeling a mutual relationship. It seems basic but
> I can't decide, maybe it is 6 of one a half dozen of the other.
>
> In my system any user might be friends with another user, that means they
> have a reciprocal friend relationship.
>
> It seems I have two choices for modeling it.

Have you considered having an array with all friends of each person?

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: better architecture?
Следующее
От: zach cruise
Дата:
Сообщение: Re: better architecture?