[SERVER-53984] Add metadata for clustered indexes into the durable catalog Created: 22/Jan/21  Updated: 29/Oct/23  Resolved: 02/Feb/21

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.9.0

Type: New Feature Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-53989 The RecordStore needs to determine it... Closed
is depended on by SERVER-53990 SortedDataInterface to support creati... Closed
is depended on by SERVER-54007 Perform TTL deletions on clustered in... Closed
is depended on by SERVER-54009 Show clustered index information in l... Closed
is depended on by SERVER-54010 Clustered indexes 'expireAfterSeconds... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-02-08
Participants:

 Description   

The durable catalog entry for time-series collections needs to store the following additional metadata for clustered indexes:

{
    md: {
        options: {
            clusteredIndex: {
                keyFormat: <String>,
                expireAfterSeconds: <int>,
            },
        },
    },
}

keyFormat indicates the type of the clustered index keys. Only "ObjectId" will be supported at this time for time-series collections. This field cannot be modified.

expireAfterSeconds, if present, will be used for TTL deletions and can be modified via the collMod command.

As clustered indexes are only permitted on time-series collections, regular collections will not have this new metadata field.

 



 Comments   
Comment by Githook User [ 02/Feb/21 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-53984 Add metadata for clustered indexes in the collection catalog
Branch: master
https://github.com/mongodb/mongo/commit/b49345b43230e21fecef17e82fe00029dfc9fdee

Comment by Louis Williams [ 27/Jan/21 ]

Closing because there is existing timeseries metadata in the catalog and we'll use that.

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