Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-195

Support new storage engine options for createCollection.

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • Labels:
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CSHARP-1108 Done 1.10, 2.0
      PYTHON-792 Done 2.8, 3.0
      RUBY-837 Done 1.12, 2.0.0
      CDRIVER-471 Done 1.1.0
      RUST-155 Fixed 0.9.0-alpha
      SWIFT-466 Done
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CSHARP-1108 Done 1.10, 2.0 PYTHON-792 Done 2.8, 3.0 RUBY-837 Done 1.12, 2.0.0 CDRIVER-471 Done 1.1.0 RUST-155 Fixed 0.9.0-alpha SWIFT-466 Done

      Similar to DRIVERS-194. Drivers that provide a createCollection or similar helper must support the new createCollection command options added in MongoDB 2.8. Drivers that already accept arbitrary options for these helpers only have to review and adjust documentation. Drivers that have builders or validate all options will have to add explicit support.

      See SERVER-16137 for more information.

      Since the server does not report an error on an invalid field in the createCollection command, if you want to validate you have to use the listCollections command, e.g.

      > db.createCollection('test', {storageEngine: {wiredTiger: {configString: 'block_compressor=zlib'}}})
      { "ok" : 1 }
      > db.runCommand('listCollections')
      {
      	"collections" : [
      		{
      			"name" : "system.indexes",
      			"options" : {
      
      			}
      		},
      		{
      			"name" : "test",
      			"options" : {
      				"flags" : 1,
      				"storageEngine" : {
      					"wiredTiger" : {
      						"configString" : "block_compressor=zlib"
      					}
      				}
      			}
      		}
      	],
      	"ok" : 1
      }
      

            Assignee:
            barrie Barrie Segal
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: