Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8475

Improve documentation of the CreateIndex option for storageEngine

    XMLWordPrintableJSON

Details

    Description

      Currently, our docs are a little sparse on how to configure the storageEngine option for the CreateIndex.

      https://docs.mongodb.com/manual/reference/method/db.collection.createIndex/#options-for-all-index-types

      The option when run against WT (or InMemory) would only allow for a "configString" document to be passed in, and this should contain a WT table config string.

      Perhaps we should add a section for WT/InMem to doc these options and an example or 2?

      Here is the creation of an index with snappy compression (in addition to prefix compression)

      db.foo.createIndex({x:1}, {storageEngine:{wiredTiger:{configString:"block_compressor=snappy"}}})
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            david.hows David Hows
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago