Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
c0042d13
Commit
c0042d13
authored
Nov 28, 2014
by
Matija Obreza
Browse files
Avoid database locking entire table on index scan
parent
6116504f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/service/impl/GenesysServiceImpl.java
View file @
c0042d13
...
...
@@ -532,7 +532,9 @@ public class GenesysServiceImpl implements GenesysService, DatasetService {
@Override
@Transactional
(
readOnly
=
false
)
public
void
updateAccessionCount
(
FaoInstitute
institute
)
{
instituteRepository
.
updateInstituteAccessionCount
(
institute
);
long
accessionCount
=
accessionRepository
.
countByInstitute
(
institute
);
institute
.
setAccessionCount
(
accessionCount
);
instituteRepository
.
save
(
institute
);
}
@Override
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment