LearnBoost/mongoose — Issue #609: Model.find() is not returning all documents
Author: gasteve
Created: 2011-11-10 12:43:55+00:00
State: open

With a particular model, I have ~120 documents. When I run model.find({}, function(err, list) {…}); some documents for that model are not returned. If I add a clause to the query, I can make it return certain matching documents that are not returned with an empty query. The problem can also occur when I specify a query parameter that matches many documents (one or two are missing from the returned results).

I'm curious if others have experienced this problem and how they fixed it. Is it a mongoose issue, the mongo native module, or mongodb itself? What did others do to fix it?

I am running mongoose 1.3.7 and mongodb 1.8.1 on Ubuntu Linux.