I am working on a project and I am unsure if there is a difference between the way the find cursor works and the way the findOne cursor works. Is findOne just a wrapper for find().limit(1)? I was looking around for it and maybe someone knows if mongodb has a special method for it or not. I am working with the PHP API for mongodb if that makes a difference.
|
|
||||
|
|
|
Based on my own benchmarks, There is either an error in the MongoDB documentation or a bug in update: response from a 10gen (MongoDB) engineer:
Update: Indeed, if the |
|||||||||||
|
|
See Leftium's answer and updates for more detail. |
|||||||
|