Maybe `$this->_connection->getDriverName()` will be faster? The `CDbHttpSession` class uses it: https://github.com/yiisoft/yii/blob/master/framework/web/CDbHttpSession.php#L136-L152