I have this query
DBCursor mongoCursor = mongoCollection.find(query).sort(sort).limit(5000);
long mongoCursorCount = mongoCursor.count();
myLogger.info("mongoCursorCount " + mongoCursorCount);
which is showing a mongoCursorCount value of 1.2M docs
The limit method works in shell queries but does it work via the mongo-java-driver-2.1.1.jar driver?