Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What will a RDBMS give me?

Name: Anonymous 2008-11-08 0:25

I'm writing a little application that keeps all its data in memory. Modifications are done through an XML/HTTP API. When a modification happens, I change the in-memory structures and save the record to the DB.

What do I lose if I just serialize my in-memory objects directly to individual files with their name? Say "myconfig/users/1", "myconfig/accounts/1"? I save out on having to use an OR mapper to get things into RAM as well as having to specify the exact schema up front.

Name: Anonymous 2008-11-08 0:27

Oh, I should add: When the app starts up, it reads all the rows in the database and constructs the in-memory representation.

Name: Anonymous 2008-11-08 0:33

I dunno, but this whole affair seems pretty ENTERPRISE to me.

Name: Anonymous 2008-11-08 0:46

Transactions. Complex queries with little effort. Consistency enforced via schema definitions.

Of course MySQL, being a toy, has none of these implemented properly.

Name: Anonymous 2008-11-08 1:14

Good point on transactions and queries, but since I have to keep everything live in memory anyways...

Name: Anonymous 2008-11-08 2:56

>>1
Fail.  Just, total, unadulterated fail.

Name: Anonymous 2008-11-08 3:13

>>5
Concurrency without locking being a pain in the ass doesn't convince you? Well, your queries must be simple then. For now.

A RDBMS lets you expand your schema and use-cases far more easily than an in-memory setup would. Also if the application process crashes, state is recoverable from no later than the last time a transaction was committed.

Though for a non-networked desktop application, relational databases are WAY OVERKILL. Don't be the guy that writes an application and depends on a relational database for the app's config file.

Name: Anonymous 2008-11-08 3:52

The one thing I never understood about these Enterprise Database Weenies

Name: Anonymous 2008-11-08 4:34

>>7
Also if the application process crashes, state is recoverable from no later than the last time a transaction was committed.
Note that OP commits a DB change after every in-memory change, so there's still the risk of partial failure with cascading changes since he's a dumbfuck.

Name: yajirobi 2008-11-08 5:09

Www.youtube.com/ryudecay
I laughed so hard at this kids videos, he's gonna be famous some day.

Name: Anonymous 2008-11-08 5:20

Www
W

wat

Name: Anonymous 2008-11-08 7:12

>>11
it carries out and is w.

Name: Anonymous 2008-11-08 10:29

wwwwwwwwwwwwwww

Name: Anonymous 2008-11-09 0:30

おもしろいスレだぞwwwwwwwwwwww

Name: Anonymous 2010-12-17 1:28

Xarn is a bad boyfriend

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List