Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-132

Use createIndexes command when available

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • Labels:
      None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      PYTHON-622 Done 2.7
      RUBY-713 Done 1.10.0
      PERL-296 Done 0.704.0.0
      CSHARP-889 Done 1.9
      JAVA-1080 Done 2.12.0, 3.0.0
      NODE-116 Done 1.4
      PHP-960 Done 1.5.0, 1.5.0RC1
      CDRIVER-321 Done
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion PYTHON-622 Done 2.7 RUBY-713 Done 1.10.0 PERL-296 Done 0.704.0.0 CSHARP-889 Done 1.9 JAVA-1080 Done 2.12.0, 3.0.0 NODE-116 Done 1.4 PHP-960 Done 1.5.0, 1.5.0RC1 CDRIVER-321 Done

      Drivers should use the new createIndexes command when it is available. As with DRIVERS-103, drivers should call the createIndexes command, and if the command is not found, fall back to the old behavior:

      try
          db.runCommand({'createIndexes': ...})
      catch error
          if error code == 59 or error code == Null
              <fallback to existing code for backward compatibility>
          else
              re-raise error
      

      For drivers that are already getting the server version by calling buildInfo, the build version can be used as an alternative approach.

            Assignee:
            Unassigned Unassigned
            Reporter:
            barrie Barrie Segal
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: