mysql - creating a database for a photo gallery with comments -


i creating social network , want have similar photo gallery of facebook. im guessing need use ajax have comments section each photo. wondering best way design database around this. make table of comments? run performance issues because im sure each user have more 1 photo, contents tables pretty large. supposing had 10 million users , each had 100 photos 2 comments each 2 billion entries , 10 million users, happen if number grew. slow down website. know can develop simple 1 table create fast , knowledgeable future. if me out appreciated.

if have 10 million users, you'll have money buy more resources handle requests :)

i design table comments, , photos. 2 tables of course joined one-to-many relationship.

a good, configured, rdmbs won't care store , select photos along comments. that's db job, don't worry.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -