Node API - Find root by anchor method performance 44/132044/7
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Tue, 8 Nov 2022 11:46:05 +0000 (11:46 +0000)
committersourabh_sourabh <sourabh.sourabh@est.tech>
Fri, 11 Nov 2022 12:30:57 +0000 (12:30 +0000)
commit1d5a12201981035805add15dbad3637e182ee061
tree3a8325862c36d18a12e20121ee2c181943a9cb2a
parentb99f0f00cb964af7b88a85c09bbb11f6c0b1f04d
Node API - Find root by anchor method performance

- Modified findFirstRootByAnchor
- Used fragment extract to build fragment entity to get root data node.

Reviewers : Toine, Priyank and Joe

Issue-ID: CPS-1171
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I843f270e4781f91ae496f39b976e2a7f2a14d55e
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
cps-ri/src/main/java/org/onap/cps/spi/entities/FragmentEntityArranger.java
cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java
cps-ri/src/main/java/org/onap/cps/spi/repository/FragmentRepository.java
cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsDataPersistenceServiceIntegrationSpec.groovy
cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsPersistenceSpecBase.groovy
cps-ri/src/test/resources/data/fragment.sql