Db\DbConnection: benchmark single row fetches
This commit is contained in:
parent
d253e1e5b0
commit
0d4d4930a9
|
@ -216,7 +216,10 @@ class DbConnection implements Selectable
|
||||||
*/
|
*/
|
||||||
public function fetchRow(DbQuery $query)
|
public function fetchRow(DbQuery $query)
|
||||||
{
|
{
|
||||||
return $this->dbAdapter->fetchRow($query->getSelectQuery());
|
Benchmark::measure('DB is fetching row');
|
||||||
|
$result = $this->dbAdapter->fetchRow($query->getSelectQuery());
|
||||||
|
Benchmark::measure('DB row done');
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue