hint don't keep compund indexes order

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: 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)
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 Hackett
              Reporter:
              zahim Anass
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: