Commit c65213e9 authored by Matija Obreza's avatar Matija Obreza

Updating accession count causes major locks

parent 707cf172
......@@ -36,7 +36,6 @@ import java.util.zip.ZipOutputStream;
import javax.persistence.EntityManager;
import org.apache.commons.collections.ListUtils;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.collections4.Predicate;
import org.apache.commons.lang.StringUtils;
......@@ -80,7 +79,6 @@ import org.genesys2.server.persistence.domain.GenesysLowlevelRepository;
import org.genesys2.server.persistence.domain.MetadataMethodRepository;
import org.genesys2.server.persistence.domain.MetadataRepository;
import org.genesys2.server.persistence.domain.MethodRepository;
import org.genesys2.server.persistence.domain.OrganizationRepository;
import org.genesys2.server.persistence.domain.SvalbardRepository;
import org.genesys2.server.persistence.domain.TraitValueRepository;
import org.genesys2.server.security.AuthUserDetails;
......@@ -665,7 +663,7 @@ public class GenesysServiceImpl implements GenesysService, DatasetService {
LOG.debug("Saving " + accessions.size() + " accessions");
}
accessionRepository.save(accessions);
updateAccessionCount(institute);
// updateAccessionCount(institute);
return accessions;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment