public function createIndexes($collection, $indexes)
    {
        $this->beginProfile($token = "    > create indexes on " . $this->composeCollectionLogName($collection) . " (" . Json::encode($indexes) . ") ...");
        $this->db->getCollection($collection)->createIndexes($indexes);
        $this->endProfile($token);
    }
public function createIndexes($collection, $indexes)
    {
        $this->beginProfile($token = "    > create indexes on " . $this->composeCollectionLogName($collection) . " (" . Json::encode($indexes) . ") ...");
        $this->db->getCollection($collection)->createIndexes($indexes);
        $this->endProfile($token);
    }
public function createIndexes ( $ collection , $ indexes ) { $ this -> beginProfile ( $ token = "    > create indexes on " . $ this -> composeCollectionLogName ( $ collection ) . " (" . Json :: encode ( $ indexes ) . ") ..." ) ; $ this -> db -> getCollection ( $ collection ) -> createIndexes ( $ indexes ) ; $ this -> endProfile ( $ token ) ; }
Creates indexes in the collection.
@param string|array $collection name of the collection
@param array $indexes indexes specifications.
@since 2.1
Creates indexes in the collection .