Relative Content

Tag Archive for mongodbmongodb-query

MongoDB Slow Query issue

I am facing slow query issue in my mongoDB database, the indexing is done properly, I have checked that there is no duplicate numeric id, even though I am getting a slow query issue. The query I am using is findOne in which it is scanning the entire data base and returning one document only. It is also reporting that in this operation it cannot able to use the index and the operation execution time is around 40-50 ms which is resulting is slow query issue. What could be done to avoid this scenario.