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

Compound index is reordered automatically when used with numerical field keys

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.5
    • Component/s: Index Maintenance
    • None
    • ALL
    • Hide

      db.getCollection("test").ensureIndex(

      {"13":1,"12":1}

      )
      -> result: compound Index 12_1_13_1

      Show
      db.getCollection("test").ensureIndex( {"13":1,"12":1} ) -> result: compound Index 12_1_13_1

      When i create an compound index on field keys with numerical characters i cannot define the order. It gets reorderd in ascending order.

            Assignee:
            Unassigned Unassigned
            Reporter:
            bertheimer Christof Rudolph
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: