updateIndexes() public method

Indexes that exist in MongoDB but not the document metadata will be deleted.
public updateIndexes ( integer $timeout = null )
$timeout integer Timeout (ms) for acknowledged index creation
示例#1
0
 /**
  * @param SchemaManager $sm
  */
 protected function processIndex(SchemaManager $sm)
 {
     $sm->updateIndexes($this->timeout);
 }
示例#2
0
 protected function processIndex(SchemaManager $sm)
 {
     $sm->updateIndexes();
 }