Validate options for createIndexes command

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Admin
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Consider the command to build a background index:

      db.foo.ensureIndex({bar:1}, {backtround: true}) // typo intentional
      

      A typo in the options like the one above will trigger a foreground index build, with may have a very negative impact on production environments.

      It would be nice if we could validate options to the ensureIndex() command, and fail with an error message if invalid options are provided.

              Assignee:
              Unassigned
              Reporter:
              Ramon Fernandez Marina
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: