i have my custom module.i have to update multiple rows.if we follow the normal magento process i have to iterate through loop and update each at each time.so if there are large number of rows to update then it takes very long time to iterate the loop
foreach($row as $row)
{
/* $update=$this->companyFactory->create();
$update->load($divaid,"divauniqueid");
$update->setStatus($statusid);
$update->save();*/
}
so i want use direct update query instead of iterate loop.which is the good .please help with this