Fragment handling decreasing performance for large number of cmHandles 82/127082/8
authorDylanB95EST <dylan.byrne@est.tech>
Fri, 11 Feb 2022 12:46:27 +0000 (12:46 +0000)
committerDylan Byrne <dylan.byrne@est.tech>
Tue, 15 Feb 2022 14:49:57 +0000 (14:49 +0000)
commitc76392f0491e357b444b3458cc26649f7dc1e7fb
treed4253a441edfe3e1e46a417c36a29e26566d0666
parentf7cb11a5d53d4964c236a6ecb2e2f4264f2437fd
Fragment handling decreasing performance for large number of cmHandles

- allow fragmentEntity to set parent id (needed for optimization)
- updated addListAlement and addChildDataNode to use new common optimized metghod to add to exsiting children
- ensure methods are transactional
- Refactored test around adding list elements to clearly define test
  checking the presence of grandchild element

Issue-ID: CPS-886
Change-Id: Ic4381f0f7170ebd666d5bc8aa6ef2c4548d81766
Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
cps-ri/src/main/java/org/onap/cps/spi/entities/FragmentEntity.java
cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java
cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsDataPersistenceServiceIntegrationSpec.groovy
csit/plans/cps/pnfsim/netconf-config/stores.yang