A relatively common mistake by new users is trying to sort a large collection without an index. Doing this on my Ubuntu server (mongodb 2.4.9) raises the following error message:
Error: too much data for sort() with no index. add an index or specify a smaller limit
This error is very helpful. However trying the same thing on OSX (both with 3.0.2 and 2.6.7) raises the following error:
Error: Executor error: Overflow sort stage buffered data usage of 33554467 bytes exceeds internal limit of 33554432 bytes
The latter error message is not very helpful. Is there something I have to configure to get the error message that I was seeing in 2.4.9?