File Storage for Web Applications: Filesystem vs DB vs NoSQL engines File Storage for Web Applications: Filesystem vs DB vs NoSQL engines database database

File Storage for Web Applications: Filesystem vs DB vs NoSQL engines


Not a direct answer but some pointers to very interesting and somehow similar questions (yeah, they are about blobs and images but this is IMO comparable).

What are the downsides of storing files as BLOBs in MySQL?

Do the same problems exist with NoSQL systems like Cassandra?

PS: I don't want to be the killjoy but I don't think that any NoSQL solution is going to solve your problem (NoSQL is just irrelevant for most businesses).


maybe a hybrid solution.

Use a database to store metadata about each file - and use the file system to actually store the file.

any restructuring of 'folders' could be modelled in the DB and dereferenced from the actual OS location.


You can store files up to 2GB easily in Cassandra by splitting them into 1MB columns or so. This is pretty common.

You could store it as one big column too, but then you'd have to read the whole thing into memory when accessing it.