protected function explainQuery($queryString)
    {
        /* @var $connection \yii\mongodb\Connection */
        $connection = $this->panel->getDb();

        $queryInfo = Json::decode($queryString);
        if (!isset($queryInfo['ns'])) {
            return false;
        }

        list($databaseName, $collectionName) = explode('.', $queryInfo['ns'], 2);
        unset($queryInfo['ns']);

        if (!empty($queryInfo['filer'])) {
            $queryInfo['filer'] = $this->prepareQueryFiler($queryInfo['filer']);
        }

        return $connection->createCommand($databaseName)->explain($collectionName, $queryInfo);
    }
protected function explainQuery($queryString)
    {
        /* @var $connection \yii\mongodb\Connection */
        $connection = $this->panel->getDb();

        $queryInfo = Json::decode($queryString);
        if (!isset($queryInfo['ns'])) {
            return false;
        }

        list($databaseName, $collectionName) = explode('.', $queryInfo['ns'], 2);
        unset($queryInfo['ns']);

        if (!empty($queryInfo['filer'])) {
            $queryInfo['filer'] = $this->prepareQueryFiler($queryInfo['filer']);
        }

        return $connection->createCommand($databaseName)->explain($collectionName, $queryInfo);
    }
protected function explainQuery ( $ queryString ) { /* @var $connection \yii\mongodb\Connection */ $ connection = $ this -> panel -> getDb ( ) ; $ queryInfo = Json :: decode ( $ queryString ) ; if ( ! isset ( $ queryInfo [ 'ns' ] ) ) { return false ; } list ( $ databaseName , $ collectionName ) = explode ( '.' , $ queryInfo [ 'ns' ] , 2 ) ; unset ( $ queryInfo [ 'ns' ] ) ; if ( ! empty ( $ queryInfo [ 'filer' ] ) ) { $ queryInfo [ 'filer' ] = $ this -> prepareQueryFiler ( $ queryInfo [ 'filer' ] ) ; } return $ connection -> createCommand ( $ databaseName ) -> explain ( $ collectionName , $ queryInfo ) ; }
Runs explain command over the query

@param string $queryString query log string.
@return array|false explain results, `false` on failure.
Runs explain command over the query