I am using MongoDB version 1.6.5
One of my collection has 973525 records.
when I try to export this collection mongodb exports only 101 records.
I can’t figure out the problem .
any one knows the solution for it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This sounds like corruption. If your server has not shutdown cleanly that could be the cause. Have you had system crashes where you didn’t do a repair?
You can try to do a dump with mongodump –dbpath if you shut down the server first.
Note: MongoExport/Import will not be able to restore all the data since json can’t represent all possible data types.