Announcement

Collapse
No announcement yet.

How to optimize queries of MongoDB?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to optimize queries of MongoDB?

    Hello,

    I have MongoDB database. It is taking a lot of time of 7 sec or more to execute some queries.

    How to optimize queries of MongoDB?

  • #2
    Hello b1303,

    I am every little idea of MongoDB. However, i have optimize one such issue in MongoDB.
    First of all, Inspect the slow queries in db.system.profile and run the queries manually using explain().
    Indexing play an important role in performance of query. You can complex indexing by following command:
    db.collection.createIndex( )

    Comment

    Working...
    X