Hey,
I'm trying to reduce the number of DB queries that occur when performing an operation on every model of a resultset. If I iterate over a result and perform the same operation, does phalcon perform man small db queries, or does it create a larger one?
IE:
$results = Model::find($conditions);
foreach($results as $result) {
$result->status = "changed";
$result->save();
}
Or should i create a phql query to do this, or is there something else I should be doing to reduce the number of DB calls?