Use delete instead of delete_all

DBIC's delete_all method fetches all rows separately, which is slow.
This commit is contained in:
Eelco Dolstra
2013-10-03 19:42:44 +02:00
parent f32077b5e8
commit 720c3892a3
8 changed files with 15 additions and 23 deletions

View File

@ -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.