Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 13th, 2009, 03:24 PM
Friend of Wrox
 
Join Date: Mar 2008
Posts: 133
Thanks: 15
Thanked 1 Time in 1 Post
Send a message via ICQ to iceman90289 Send a message via AIM to iceman90289
Default Managing a contact list

Hello everyone!

so in a social networking site, what would be the best way to manage a contact list? i thought throwing everyone into a table and having an "Is friend of" column... but then i thought maybe that would be a bad idea, maybe programmatically adding a table per registered user to represent a friend-list. im just not quite sure. any direction would be greatly appreciated. I really dont know how i would begin to manage this efficiently.

thanks everyone :)
 
Old March 13th, 2009, 03:33 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hello.

Sure, the solution is not to add a table per user (1000 users means a 1000 tables!!!)

An intermediate table with userid,userid doesn't sounds bad for me. (in fact, IMHO, I don't think there is other way to do it).
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Managing Anonymous Users For Better Performance Lee Dumond BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 December 22nd, 2008 12:01 AM
Managing RSS with XmlDataSource rit01 ASP.NET 2.0 Professional 1 June 13th, 2006 09:00 AM
Managing TabPages events MAKO C# 2 March 1st, 2006 07:04 AM
Help on Managing Web Pages macupryk General .NET 1 October 5th, 2004 09:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.