[SERVER-18879] Add "indexOptionDefaults" to createCollection() Created: 08/Jun/15  Updated: 06/Apr/21  Resolved: 06/Aug/15

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

Type: New Feature Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Max Hirschhorn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-6106 Document "indexOptionDefaults" option... Closed
Related
related to SERVER-16960 Support dynamic storage options for r... Closed
related to SERVER-55823 Check indexOptionDefaults passed at t... Closed
is related to DRIVERS-253 Add "indexOptionDefaults" to createCo... Closed
Backwards Compatibility: Fully Compatible
Sprint: Quint Iteration 7
Participants:

 Description   

Adds support for storage engine customization of indexes to be specified at the collection level. Applies to all indexes created on a collection, including the _id index.

The WiredTiger integration layer uses this to produce a creation string with the following order of preference:

  1. index-specific options specified to createIndex().
  2. collection-wide options specified as "indexOptionDefaults" to createCollection().
  3. system-wide options specified by --wiredTigerIndexConfigString.

The strings are concatenated so keys specified at the system-level and not overridden at the collection-level will be applied to the index.



 Comments   
Comment by Githook User [ 07/Aug/15 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-18879 Skip index options override test on LSM build variant.

MongoRunner ends up passing --wiredTigerIndexConfigString twice in the
command line arguments, causing mongod to fail to start up.
Branch: master
https://github.com/mongodb/mongo/commit/61b9c8d1ca4a28a10d81c0da89425b74e71e0d11

Comment by Githook User [ 06/Aug/15 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-18879 Add indexOptionDefaults to CollectionOptions.

Only integrated into the wiredTiger storage engine. The "configString"
option is concatenated with the creation string of all indexes that are
created on a collection.
Branch: master
https://github.com/mongodb/mongo/commit/2aa7e6eaed86e8279bf3bdf8d1b29fedde78ee06

Generated at Thu Feb 08 03:49:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.