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

Compound index is reordered automatically when used with numerical field keys

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.6.5
    • Fix Version/s: None
    • Component/s: Index Maintenance
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      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

      Description

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: