Mongodb + Django

Hello there.
I’m working in an API which has a big data. For working such a big data I amusing mongodb. I have an issue. When I’m filtering a data throw 7000000 and more documents the answer is so slow. I have added some indexes but it didn’t help. I’m new in mongodb and I need a help. I would be very grateful for your help.

Welcome to the MongoDB Community Forums @Jasmine_jas !

Please share some further details on the query execution:

  • output of explain("allPlansExecution") for your slow query
  • version of PyMongo driver and any other drivers or ODMs you are using
  • version of MongoDB server

If a query is fast to execute on your MongoDB server but the overall time is unexpectedly slow, a snippet of code showing how you are retrieving the results would also be helpful.