I am getting
Error: too much data for sort() with no index
while sorting through ascending date. I only get this exception if the no of records are more than 9. Can some one tell me what I am doing wrong? or any work around?
My sorting syntax is:
image.find({reviewed:true },null,{sort:{"submittedDate":-1}}, function (err, images){});
As from the documentation here: http://www.mongodb.org/display/DOCS/Indexes#Indexes-Using{{sort%28%29}}withoutanIndex
Is it possible that those 9 documents are actually greater than 32 megabytes? Or, as in previous versions, more than 4 megabytes?