ensureDocumentSharding() 공개 메소드

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.
예제 #1
0
 /**
  * @param SchemaManager $sm
  * @param object $document
  */
 protected function processDocumentIndex(SchemaManager $sm, $document)
 {
     $sm->ensureDocumentSharding($document);
 }