Re:Why use a database instead of just saving your data to disk?
by icebraining on Sunday May 19, 2013 @05:45PM
(#5734523)
Not that the filesystem isn't a valid option, but there are more databases than SQL databases. That cases seems great for a key-value store (which is essentially what a filesystem is).
[ Parent
| on HN ]
Re:Why use a database instead of just saving your data to disk?
by UnoriginalGuy on Sunday May 19, 2013 @05:48PM
(#5734541)
True there are, and I'd be lying if I said I had tried everything.
But in general even key-value stores are designed to store sorted/structured data. Not really massive BLOBs with a little meta data sprinkled in to explain it.
You just run into serious performance issues when you try and store/access >2 GB of "junk" data via some clever database management engine, which is really more accustomed to storing tiny little columns of explain-able data you can write clever queries to.
We've wound up in a situation now where we just use databases to store the meta-data and have left the actual data in files, which from a programming point of view makes things harder (since you're hooking into two methods of data access as opposed to one).
Re:Why use a database instead of just saving your data to disk?
by reefab on Sunday May 19, 2013 @08:25PM
(#5735105)
I've used CouchDB's attachment feature for that purpose:
http://onabai.wordpress.com/2012/05/08/working-with-attachme...
Re:Why use a database instead of just saving your data to disk?
by icebraining on Sunday May 19, 2013 @07:28PM
(#5734876)
Well, PostgreSQL supports the Large Objects, which are designed to store big amounts of data (outside the normal tables) and reference them using special IDs. It may work for your use case.