Count() takes exceptionally long time/hangs

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.0.2
    • Component/s: Querying
    • None
    • Environment:
      Red Hat Linux Enterprise
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Bill Hayward (Inactive)
            Reporter:
            Brett Goldstein
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: