Getting all matching rows from the database is expensive.
XG3QG5ICOI5HGJY4T3M7PDIXTJ5HCV6FTRI5XBY5ZD5SPAZ2CCFQC my ($latest) = $c->stash->{allBuilds}->search({finished => 1, buildstatus => 0, system => $system}, {order_by => ["id DESC"]});
my $latest = $c->stash->{allBuilds}->find({ finished => 1, buildstatus => 0, system => $system }, { order_by => ["id DESC"], rows => 1 });