[SERVER-59797] Introduce new type for clusteredIndex create command with key: _id Created: 03/Sep/21  Updated: 29/Oct/23  Resolved: 28/Sep/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Haley Connelly Assignee: Haley Connelly
Resolution: Fixed Votes: 0
Labels: PM-2311-M1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-59799 Display clusteredIndex in listCollect... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-09-20, Execution Team 2021-10-04
Participants:

 Description   

The clusteredIndex option for create should eventually take the following for — for now, key is limited to {_id: 1}

{
  create: <collection name>,
  clusteredIndex: { 
    	// <key pattern>
     	// (a) uses existing index key specification structure -
     	//  	all fields must be ascending (1), descending (-1) or "hashed"
  	// (b) multi-key cluster keys are prohibited
        key: <key pattern>, // required
        unique: <bool>, // required, must be ‘true’
        name: <string>, // optional, otherwise automatically generated
        v: <int>, // optional, must be ‘2’ if provided
  },	
   // expireAfterSeconds only available when <cluster key> is a single field.   expireAfterSeconds: <String or NumberLong> // optional
}

Included in this task:

  • create a ClusteredCollectionOptions idl struct
  • modify create.idl's clusteredIndex option to take in either a boolean or ClusteredCollectionOptions
  • modify CollectionOptions and CollectionImpl to distinguish between collections that use the new and old format


 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 28/Sep/21 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-59797 Introduce new type for clusteredIndex create command
Branch: master
https://github.com/mongodb/mongo/commit/8c9fa5aa62c28280f35494b091f1ae5b810d349b

Comment by Haley Connelly [ 15/Sep/21 ]

After reviewing the scope/priorities of the project, this ticket only requires _id is supported with the new clusteredIndex create format.

Generated at Thu Feb 08 05:48:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.