Hacker News new | ask | show | jobs
by DanWaterworth 5009 days ago
Interesting that you're quoting the zen of python, but using ruby. I wonder if the python mongo client would have the same behaviour.

There seems to be a number of people commenting, telling you to read the documentation, but I'm with you, that is completely counter-intuitive behaviour and should be viewed as a bug.

1 comments

This has nothing to do with the client library, so it would not matter which language you use to interface with MongoDB.
As I understand it, it has everything to do with the client library, some clients may call getLastError on every operation and raise errors when they occur, for example.
PyMongo, for instance, can do this for most operations by passing safe=True.
Oh, I thought the original article was saying that MongoDB itself would not send an error down if it was "full".