Use delete instead of delete_all
DBIC's delete_all method fetches all rows separately, which is slow.
This commit is contained in:
@ -570,7 +570,7 @@ sub restartBuild {
|
||||
, iscachedbuild => 0
|
||||
});
|
||||
|
||||
$build->buildproducts->delete_all;
|
||||
$build->buildproducts->delete;
|
||||
|
||||
# Reset the stats for the evals to which this build belongs.
|
||||
# !!! Should do this in a trigger.
|
||||
|
Reference in New Issue
Block a user