From 5d8a9cfe85dfefad43ed7adf09dcf15eace681c2 Mon Sep 17 00:00:00 2001 From: ToineSiebelink Date: Thu, 8 May 2025 17:24:39 +0100 Subject: [PATCH] DCM Write optimization using batching - Add method to AlternateIdMatcher to match a batch of paths and return the relevant yang model cm handles - Extended inventory service to load cm handles without properties (i.e. descendants) - Switch from NcmpServiceCmHandles to YangModel Cm Handles - Preload required cm handles (without properties) using batching - Removed (now) unused methods - Improved test coverage on some legacy but related functionality Issue-ID: CPS-2743 Change-Id: Ie80fdd4c12b72fc72ab1a87aa463ec0e6b664e3a Signed-off-by: ToineSiebelink --- cps-ncmp-service/pom.xml | 2 +- .../ncmp/impl/datajobs/WriteRequestExaminer.java | 46 +++++++---- .../inventory/CmHandleRegistrationService.java | 2 +- .../ncmp/impl/inventory/InventoryPersistence.java | 11 ++- .../impl/inventory/InventoryPersistenceImpl.java | 35 ++++++--- .../ParameterizedCmHandleQueryService.java | 9 --- .../ParameterizedCmHandleQueryServiceImpl.java | 19 ----- .../cps/ncmp/impl/utils/AlternateIdMatcher.java | 66 ++++++++++++++-- .../impl/datajobs/WriteRequestExaminerSpec.groovy | 30 ++++---- .../CmHandleRegistrationServiceSpec.groovy | 18 +++++ .../ParameterizedCmHandleQueryServiceSpec.groovy | 9 +-- .../ncmp/impl/utils/AlternateIdMatcherSpec.groovy | 81 ++++++++++++++++---- .../integration/base/CpsIntegrationSpecBase.groovy | 7 +- .../performance/ncmp/AlternateIdPerfTest.groovy | 33 ++++++-- .../performance/ncmp/WriteDataJobPerfTest.groovy | 88 +++++++++++++--------- 15 files changed, 318 insertions(+), 138 deletions(-) diff --git a/cps-ncmp-service/pom.xml b/cps-ncmp-service/pom.xml index fbc30eba04..78ef226c99 100644 --- a/cps-ncmp-service/pom.xml +++ b/cps-ncmp-service/pom.xml @@ -1,7 +1,7 @@