#27 -- fix out of memory and transactional removing
This commit is contained in:
parent
5054224ff3
commit
f1cf6c8d2f
@ -10,6 +10,7 @@ import org.springframework.stereotype.Service;
|
||||
import ru.ulstu.extractor.model.Commit;
|
||||
import ru.ulstu.extractor.repository.CommitRepository;
|
||||
|
||||
import javax.transaction.Transactional;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@ -39,6 +40,7 @@ public class CommitService {
|
||||
}).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
@Transactional
|
||||
public void deleteWithEmptyIds() {
|
||||
commitRepository.deleteByBranchIsNull();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user