Im designing a social network. I have many questions regarding the design methodology and database design but according to the stackoverflow FAQ its better to make the question specified and focused. Or I will just list all the questions in one post. My question is: If you have a feature in the social network where user can create a photo albums, let’s assume that each user has 3 albums and each contain 10 photos that means each user has 30 photos each which will be stored in 3 deferent size large, medium, and small.
30 photos x 200000 users = 6 000 000 M phots. That means 6000 000 million rows in DB not an issue for MySQL
Now my main question is how do you let the server handle the image data. Do you divide them into folders OR you simply add them all in one folder ….. ANY EXPERT HAD FACED THIS. Suggestions please… thx…?
Specification
MYSQL DB PHP Shared Linux hosting for first 6 months.