file - Handling millions of photos on web server -


im designing social network. have many questions regarding design methodology , database design according stackoverflow faq better make question specified , focused. or list questions in 1 post. question is: if have feature in social network user can create photo albums, let’s assume each user has 3 albums , each contain 10 photos means each user has 30 photos each stored in 3 deferent size large, medium, , small.

30 photos x 200000 users = 6 000 000 m phots. means 6000 000 million rows in db not issue mysql

now main question how let server handle image data. divide them folders or add them in 1 folder ….. expert had faced this. suggestions please… thx…?

specification

mysql db php shared linux hosting first 6 months.

i'll not using classical file system task. there inherent limitation of hierarchical file storing (folder depth, number of file in folder, name, auto indexation crash etc..).

use blobs directly in database. bing map storing of data blobs; several of images.

beside that, working on microsoft sql server, mysql you'll need configurations tricks.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -