1. what's the difference of db.mydb.find({tag:'java'}).count() and db.mydb.count({tag:'java'}) in mongodb stackoverflow.comI'm need to count a lot of documents (30 M) with a criteria fast in mondodb what's the difference of db.mydb.find({tag:'java'}).count() and db.mydb.count({tag:'java'}) it's one faster than the other? I have and index on ... |
2. Mongodb Java - How to return restricted fields with find() or findOne() stackoverflow.comWith the driver Java Mongodb, I am looking for a way to return just restricted fields with a
|
3. How to Find the matched record in mongodb? stackoverflow.comI have a record in my collection and I want to fetch the details of the person whose id is 1. But I am getting the details for 2times instead of ... |
4. Finding geo spatial with morphia mongodb using Java stackoverflow.comI would like to query some geo location points with morphia framework. I use my latitude, longitude, and radius(100 km.) with "Near" method to query the other around my location and ... |
5. MongoDB range search on numbers doesn't work as expected stackoverflow.comI am trying to do a range search on some numbers in MongoDB.
I have the following two records. The import fields are the last two, |
6. Find some values in a mongodb collection? stackoverflow.comIm trying to read a (mongo)userdatabase with java. On the tutorial page I saw how to read the whole collection. I can do something like that:
|