Node API - GET Method performance issue 38/131938/10
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Tue, 1 Nov 2022 14:40:25 +0000 (14:40 +0000)
committersourabh_sourabh <sourabh.sourabh@est.tech>
Tue, 8 Nov 2022 13:31:04 +0000 (13:31 +0000)
commit337c8d436186d87742caefc95aeee7ba2a36b687
tree28e45ec083dac7b7e625b87189328b5082d2bc18
parent375281167c3792a70eee0bafa21364f184aebd86
Node API - GET Method performance issue

- Modified toDataNode call based on fetch descendants option.
- Used fragment extract to build fragment entity.
- Modified data set to have correct parent id for descendants.

Reviewers : Toine, Priyank and Joe

Issue-ID: CPS-1171
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Change-Id: I27a537fe72dd396722e6cfde7d8c454ed2579ec0
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
cps-ri/src/main/java/org/onap/cps/spi/impl/CpsDataPersistenceServiceImpl.java
cps-ri/src/test/groovy/org/onap/cps/spi/impl/CpsDataPersistenceQueryDataNodeSpec.groovy
cps-ri/src/test/resources/data/cps-path-query.sql
cps-service/src/test/groovy/org/onap/cps/notification/NotificationPublisherSpec.groovy