Improve performance of moduleSetTag lookup 47/137347/2
authordanielhanrahan <daniel.hanrahan@est.tech>
Wed, 21 Feb 2024 16:37:19 +0000 (16:37 +0000)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Thu, 22 Feb 2024 10:52:40 +0000 (10:52 +0000)
commit63aff8f081da3ca039bd7a29075f7edc495fb5b6
treea0a315cc8afc70472cadffd8ab074bfe8c1fdc89
parent699e725c1d731275e1207f6e19330692569c2380
Improve performance of moduleSetTag lookup

- Using absolute cps-path /dmi-registry/cm-handles is faster
  than descendant cps-path //cm-handles due to CPS-2087.
- Converting DataNodes to YangModelCmHandle allows checking if
  the handles are READY without needing to send additional DB
  queries via cmHandleQueries::cmHandleHasState.

Issue-ID: CPS-2027
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ied7e884b0f779f394854603a7f8b186d09eb5be8
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/inventory/sync/ModuleSyncService.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/api/impl/inventory/sync/ModuleSyncServiceSpec.groovy