Hello people
Sorry for the non-descriptive title
I need to make something like Facebook's Wall.
So there can be 2 kind of posts - normal text post and image post.
So should i keep all info in 1 table like
Or try having them in 2 tables-WallPosts
PostId
UserId
PostType (1 for Text post, 2 for Image post - for easy sorting)
DateTime
Comment/Text
ImageURL
What will be more efficient if say large number of records are there?-WallPosts
PostId
UserId
DateTime
PostType
-WallPostDetails
Id
PostId
Text/Comment
ImageURL
Also not to mention my query writing capabilities
Or any other approach?
.NET 2.0
SQL Server 2000
Thanx
Micky



LinkBack URL
About LinkBacks

Reply With Quote


I guess store a similar entry in the "wall" table then. Like I said above, I'd guess FB store the user link as markup. They have there own markup language. So, say they had something like <fb:user id="12" /> (Don't know is this a real FB markup!) the markup engine would rewrite this to <a href="http://www.facebook.com/user.php?id=12">this user</a>. Also prevents any potential injection attacks as you can't use HTML in any posts, only FBML.

Bookmarks