Db\DbConnection: benchmark single row fetches

This commit is contained in:
Thomas Gelf 2014-11-11 21:07:02 +01:00
parent d253e1e5b0
commit 0d4d4930a9
1 changed files with 4 additions and 1 deletions

View File

@ -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;
} }
/** /**