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

Count of Geo Querys of Millions of Documents Extremely Slow

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.2.0, 2.4.0
    • Component/s: Geo
    • Labels:
      None
    • Environment:
      Linux (EC2)
      OSX

      I have a 5M record dataset including Geo locations upon which I want to search to find points within a selected area.

      The operation yields results quickly but I need a count of the points in the area as well. If I make a selection of a city or entire state on this data the count query takes 45 seconds or more to execute.

      There is a similar problem if I want to sort the results of a find (NOT a count in this case) regardless of indexing.

      This thread has additional info

      https://groups.google.com/forum/#!searchin/mongodb-user/geo$20performance/mongodb-user/UQNiXAHZHP0/2nu9unVFQ3QJ

            Assignee:
            hari.khalsa@10gen.com hari.khalsa@10gen.com
            Reporter:
            mattx Matthew Cross
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: