[DRIVERS-186] Parallel index creation with createIndexes command Created: 07/Oct/14  Updated: 15/Apr/19  Resolved: 04/Oct/16

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Durran Jordan
Resolution: Done Votes: 0
Labels: needs-specs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on DRIVERS-217 Implement Index Management Spec Closed
Related
is related to DRIVERS-132 Use createIndexes command when available Closed
is related to SERVER-1627 add createIndexes command Closed

 Description   

In MongoDB 2.5.5, the server got a "createIndexes" command that replaces the old method of inserting an index spec into the system.indexes collection (SERVER-1627). Beginning in 2.7.5, the server can build multiple indexes efficiently: it faults in each document just once to gather information for multiple indexes.

In DRIVERS-132, drivers with a "create_index" helper were updated to use the createIndexes command instead of inserting into system.indexes, when talking to a newer server. However, drivers were not required to allow users to pass multiple index specs at a time to createIndexes. We should add this ability.

This DRIVERS ticket needs a spec.



 Comments   
Comment by Durran Jordan [ 12/Sep/15 ]

This is in the index management specification.

https://github.com/mongodb/specifications/blob/master/source/index-management.rst#standard-api

Comment by Andrew Morrow (Inactive) [ 03/Mar/15 ]

Validating for C++ legacy driver as we do not expect to implement the index management spec.

Generated at Thu Feb 08 08:20:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.