Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-37537

createIndex Command takes only one optional Parameter

    • Type: Icon: Question Question
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.16, 4.0.1
    • Component/s: Index Maintenance
    • None

      Hi,

      We are trying to create Index with below command

      db.traffic_data.createIndex( {process: 1}, {storageEngine:{wiredTiger:

      {configString:"block_compressor=zlib"}

      }},{background: "True"}) 

      It runs as foreground but but picks the storage options

      The case is reversed when I use below command, it runs as background but without the storage options

      db.traffic_data.createIndex( {process: 1},{background: "True"}, {storageEngine:{wiredTiger:

      {configString:"block_compressor=zlib"}

      }}) 

       

      Thanks,

            Assignee:
            nick.brewer Nick Brewer
            Reporter:
            tanveerm@xilinx.com Tanveer Madan Marate
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: