-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Component/s: None
-
None
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.
- depends on
-
CDRIVER-321 mongoc_collection_t should use createIndexes command when available
- Closed
-
CSHARP-889 Support createdIndexes command
- Closed
-
JAVA-1080 Support createIndexes command when available
- Closed
-
PYTHON-622 Use createIndexes command when available (MongoDB 2.6)
- Closed
-
RUBY-713 Use createIndexes command when available (MongoDB 2.6)
- Closed
-
NODE-116 Use createIndexes command when available
- Closed
-
SERVER-1627 add createIndexes command
- Closed
- is related to
-
DRIVERS-149 Some MongoDB 2.6 driver releases may not be able to add users or create indexes with mongos versions before 2.4.0
- Closed
-
SERVER-13082 createIndexes can return error without an error code
- Closed
- related to
-
SERVER-13083 "insert" command into system.indexes not prohibited
- Closed
-
DRIVERS-186 Parallel index creation with createIndexes command
- Closed
-
CXX-189 Add Create Index Helper
- Closed