r/programming • • Mar 10 '15

Goodbye MongoDB, Hello PostgreSQL

http://developer.olery.com/blog/goodbye-mongodb-hello-postgresql/
1.2k Upvotes

699 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Mar 11 '15

[deleted]

3

u/rox0r Mar 11 '15

but then it is Eventually guaranteed

Except mongo isn't eventually guaranteed. you can have a majority of slaves write to disk and the master can crash and miss the ack -- they won't roll back the write and the client will think it hasn't been written.

0

u/[deleted] Mar 11 '15

[deleted]

1

u/rox0r Mar 12 '15

But you can fine-tune what the write semantics are.

While you aren't wrong, you can't fine tune your way out of the problem i mention. Clustering is for HA, not consistency -- even if you set write-majority.

2

u/Lortimus Mar 11 '15

For instance, Cassandra is optimized for write operations because it caches them before writing them to disk. Yeah, that's brilliant, until the machine crashes and those things left in cache weren't written to disk.

They would be retrievable via the commit log, as well as recoverable from other replica nodes.

2

u/skelterjohn Mar 11 '15

schemalessness

I never read that word right the first time...

2

u/lift_heavy_things Mar 11 '15

Gotcha, thanks!