I am want to be able to store per user multiple types of binary files. Could be pdf, photos or very small video ~2MB.
I have in mind 2 approaches:
- Use MySQL and have a
BLOB
column in a table and add in the column these different types of files. - Use MySQL to store metadata about the binary files but store the actual files in the filesystem.
I think (1) is simpler to implement but (2) allows for easier access of the files from everywhere e.g. even for download links.
What I was not sure though is if we can consider the binary files as documents and hence using e.g. Cassandra or any other NoSQL store is a better choice. What are the downsides of treating the binary files as "documents"?