I have tried giving some id and just storing its title, path and the rest in a MySQL database. But This looks simple. Is there any robust way out there to do that. Thanks
Asked
Active
Viewed 874 times
1 Answers
1
I'm not sure this is what you are looking for. But...
basically there is two way to deal with "binary large objects".
- The first one is to store them is a so called
BLOB
column in your DB. - The second one, is, as you do it now, to store in the DB only "pointers" to the actual data on an external storage solution. Usually as "path" referencing files on your file-system..
Both solutions have pro and cons. Regarding performances, data migration, load balancing, and so on. This has already been discussed elsewhere on SO:

Community
- 1
- 1

Sylvain Leroux
- 50,096
- 7
- 103
- 125
-
thanks that was helpful. But you happen to know what big sites like youtube use? – Jos Jul 31 '13 at 14:04
-
-
... well in fact not necessary (?) http://highscalability.com/youtube-architecture If I read well "BigTable" is used only for thumbnails. Video seems to be static files served by lighttpd. – Sylvain Leroux Jul 31 '13 at 14:08