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

Count() takes exceptionally long time/hangs

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.0.2
    • Querying
    • None
    • Red Hat Linux Enterprise

    Description

      Having a problem with following query:

      db.test.count({"location" : {"$within" : {"$center" : [[ -87, 41], 5]}}, "initial_type" : "x"})

      I built an index for geospatial and the above call type. Coordinates are reduced for privacy reasons fyi...

      The find() returns exceptionally fast...but the count above just hangs. Any quick thoughts? thx

      Attachments

        Activity

          People

            bill Bill Hayward
            brett.goldstein@cityofchicago.org Brett Goldstein
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: