News for hackers. Stuff that matters.
Re:Does everyone hate MongoDB? by gaius on Tuesday September 25, 2012 @02:38PM (#4571925)
The issue is not the limit; it's the silent failure. 32-bit Oracle doesn't do that, it tells you it can't extend the tablespace by raising an exception.
Re:Does everyone hate MongoDB? by pooriaazimi on Tuesday September 25, 2012 @02:45PM (#4571963)
I'm not trying to defend Mongo, but the reason it doesn't tell you is because you didn't ask for it. If you care about the data (i.e. it's not a log or something that's not very important), you ought to always use "getLastError" to see if your data was actually stored or not (some drivers, like mongoose (for Node.js), just let you specify a simple flag ("safe:true") that does this automatically).

A shitty default, no doubt. But it can be changed easily. And "most" drivers offer that. And you usually connect to MongoDB using a driver.

http://www.mongodb.org/display/DOCS/getLastError+Command

Re:Does everyone hate MongoDB? by rdtsc on Tuesday September 25, 2012 @09:22PM (#4573744)
> If you care about the data (i.e. it's not a log or something that's not very important), you ought to always use "getLastError"

Wait they are promoting this as a database. It is right there in black on yellow "database". I don't know about you but I suspect most people expect databases to try their hardest to protect data. That means also having safe default. As in when I install it and put data in it, by default it should try hardest to make sure that data doesn't get corrupted. If it doesn't, it doesn't deserve to call itself a database.

> A shitty default, no doubt.

This is not a "oopsie" this is a deliberate lie and misinformation in order to produce fast benchmarks.

Re:Does everyone hate MongoDB? by PeterisP on Tuesday September 25, 2012 @05:57PM (#4572908)
Shitty defaults are 90% as bad as hardcoded unfixable settings.

Defaults usually don't get changed, convention over configuration, etc.

Re:Does everyone hate MongoDB? by taligent on Tuesday September 25, 2012 @08:12PM (#4573512)
The default for the Java driver changed recently to the Safe mode.

So it does happen.