I’ve seen in a few posts people to hint about different performance of AR and DAO approach. Can someone explain where exactly is the bottle neck of the performance compromise in AR cases. Is it in the default select? What would be the difference in performance between:
AR approach:
Model::model()->findAll(array(
'select'=>'id',
'condition'=>'condition_rule',
))
and
$connection=new CDbConnection($dsn,$username,$password);
$connection->active=true;
$sql="SELECT id FROM table WHERE condition_rule";
$dataReader=$connection->createCommand($sql)->query();
....
Cheers,
b