Jump to content

[SOLVED] comments on a youtube style site


M.O.S. Studios

Recommended Posts

Hey guys,

  Im working on a site that will have streaming video, for each video their will be a ability to comment on it much like you tube.

 

I'm torn between two ways to build this, the final goal will be minimizing loading time and strain on the server.

 

option 1.

      Each video have 2 tables, one for the video information, the other for its comments.

 

option 2.

      all the coments are stored in one table with a reference number linking it to the video

 

any other sugestions are welcome,

 

any ideas?

 

thanks in advance

Link to comment
Share on other sites

Aren't those two the same?

 

 

 

 

Anyway, you will want to have separate tables.  Perhaps something like:

 

 

---videos---

video_id, poster_id, video_name, video_desc

 

---comments---

video_id, user_id, comment_content

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.