For example I have photos and videos tables, I can comment on these, but when I send it to database which way is better?
To have 2 tables for comments:
photo_commentsandvideo_commentsOr to have 1 table
commentsand create a row inside the table liketypeand put there if it's aphoto_commentorvideo_comment
I think the 1 is faster because I have less data when I need to query the table but maybe the 2 is easier to use.
Please let me know what's the best way, speed is very important for me.
Guys I'm talking about a very big system with millions of data, millions of comments, so I want the fastest way to get the results, for me doesn't matter if I need to code more or need to keep in mind something in plus, results are much more important!