Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1536

Reduce DB lookups of dataspace/anchor names

XMLWordPrintable

      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.

            danielhanrahan Daniel Hanrahan
            danielhanrahan Daniel Hanrahan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: