Ensure sharding for collection by document name.
public ensureDocumentSharding ( string $documentName, array $indexOptions = [] ) | ||
$documentName | string | |
$indexOptions | array | Options for `ensureIndex` command. It's performed on an existing collections. |