Re:Why use a database instead of just saving your data to disk?
by andrewvc on Sunday May 19, 2013 @05:59PM
(#5734574)
That's a fair point, for many scenarios this stuff doesn't matter, like a video-game. However, most apps fall into either the "serialize a bunch of crap to disk" category, or the "multi-user data changes all the time category". Nearly everything in the second category works best with a proper database.
Re:Why use a database instead of just saving your data to disk?
by icebraining on Sunday May 19, 2013 @05:42PM
(#5734514)
There are plenty of databases with support for more complex types, and in any case, it's not like the filesystem understands those either, so if you want to store something to disk, you'll need some kind of translation/serialization anyway.
Re:Why use a database instead of just saving your data to disk?
by lysium on Sunday May 19, 2013 @05:57PM
(#5734569)
I'm interested in the databases that support more complex types. Pointers?
Re:Why use a database instead of just saving your data to disk?
by icebraining on Sunday May 19, 2013 @07:22PM
(#5734857)
Nothing very specific, I was specifically thinking about graph databases, since you mentioned them. There's also domain-specific datatypes, such as those implemented by PostGIS.
1-2 scenario: many many small files.
3: continuously accessing your data
4: concurrent connections
5: distributed application
6: never-stopping application
7: concurrent writes to mutable data
You may need a DB, if you want several of these to happen. This might be true for many applications, but for many applications this is equally not true.
Most often than youd' expect, using a DB makes understanding an application _harder_ because the data in the application tends to get structured as in the database: only ids, ints, strings and maybe date, no graphs or algebraic data types such as sum types, optional types, etc.