node.js - mongodb collection count wrong in "show log" getmore -


when run mongo shell, result when count values in connected collection.

> db.connected.find({}).count() 10326 

but when run node.js query on database:

dbconnector.open(function(err, db) {     db.collection('connected').find().toarray(function(err, items) 

the log in mongo show log says nreturned: 10225 query sent

<2015/09 etc> [conn165] getmore mydb.connected cursorid:nnnnn ntoreturn:0 keyupdates:0 numyields: 14 locks(micros) r:5283 nreturned:10225 reslen:1015981 212ms 

i tried reindex collection named connection, did not make difference. other admin commands should try or how should go looking problem?

edit 0

i deleted first 2 thirds of database before issue turned up.

after consulting more mongodb knowledgeable developer not find root cause, decided drop collection. new values inserted mongodb collection, works again.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -