Hi Narendra,
Could you provide the following relevant information:
. Are you running single mongod server or clustered? Replica Set or with Sharding?
. What is (are) the specs of your mongod server(s)?
. What is the size (storage) of the ‘issues’ collection and the other collection for all messages?
. What’s your query and the explain() result. Please see cursor.explain() and Indexes: covered queries
. How do you fetch the documents from the collection ? Through one of MongoDB drivers, if so which one ? or via mongo shell?
To answer your questions:
Please note that MongoDB v2.6 has reached it’s end of life on October 2016, the latest MongoDB version is 3.4.0, which has a lot of improvements over your running version 2.6. Please refer to the Release Notes for MongoDB 3.4. You may want to determine if upgrading is applicable to your use case. However, before doing any major changes to your deployment, please ensure that all data are backed up and all procedures thoroughly tested.
Regards,
Tom