Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-457

hint don't keep compund indexes order

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      pymongo.version: 2.4.1
      mongodb.version: 2.1.0 (It's in production, I can't just simply make an upgrade)

      collection.find(query, fields=["_id",]).hint([('geolocation', pymongo.ASCENDING),('location', pymongo.ASCENDING),('_id', pymongo.ASCENDING)])

      In my logs I found that the $hint was :

      $hint:

      { geolocation: 1, _id: 1, location: 1 }

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            zanass0@gmail.com zahim Anass
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: