Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12667

improve the performance of complex counts

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None

      In SERVER-1752 you have optimized the speed for simple queries count
      db.Comment.count(

      {appId:1,topicId:1}

      )

      I think it would be very usefull an improvement for more complex queries.
      Now for large collections counts like this are very slow
      db.Comment.count({appId:{$in:[1,2]}})
      db.Comment.count({$or:[

      {appId:1}

      ,

      {appId:2}

      ]})

            Assignee:
            Unassigned Unassigned
            Reporter:
            ovi_mihai Ovidiu Anicai
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: