www.webdeveloper.com
Results 1 to 2 of 2

Thread: table structure, friends, mutual friends,friends friends ect

  1. #1
    Join Date
    Jan 2010
    Posts
    230

    table structure, friends, mutual friends,friends friends ect

    Hi

    I was wondering what the easiest method would be for me in the future to make queries both effective and less complex.

    Should i save a two way relationship like

    from_id=1, to_id=2
    from_id=2, to_id=1

    or just create one unique row

    from_id=1, to_id=2

    any thoughts?

    Regards,
    Alex

  2. #2
    Join Date
    Jan 2010
    Posts
    230
    has stackoverflow killed this forum or something? :P

    anyways, i found out that two way was the best way.

    Best of regards,
    Alex

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles