What I have:
What I do:
C:\Program Files\MongoDB\Server\3.0\bin>mongorestore --collection collection_name --db db_name F:\path_to_bson\archive.bson
Result:
If I use another archive to restore (which is smaller, ~ 6GB) - it is OK
Question: How to get all documents restored from .bson ? Thanks in advance.
I was having this problem on windows a moment ago (client and server on same machine). Same code works fine on Linux.
I got around the problem by decreasing the number of items inserted / updated per bulk operation.
I'm doing this in an app. I don't see an option in mongorestore docs for reducing per bulk operation entry count.