-
Task
-
Resolution: Done
-
Medium
-
London Release
-
None
DataspaceRepository::findByName and AnchorRepository::findByDataspaceAndName are needlessly being called an enormous number of times, increasing DB load. For example, during NCMP de-registration of 20,000 CM-handles, these methods are presently called over 60,000 times each! This task is to identify and eliminate unnecessary calls to the methods, particularly from loops.
A strategy to minimize the number of calls is:
- While public methods may be required to take dataspace or anchor names as arguments, private methods have no such requirement.
- In cps-ri, any private methods operating on dataspace/anchors should use DataspaceEntity/AnchorEntity for arguments instead of names.
- In cps-service, any private methods should use Anchor object instead of names.
- mentioned in
-
Page Loading...