Creation of DataNodeBuilder with module name prefix is very slow

Description

 

Grooming update :

Module X declare Container A, child container B
Module X imports Module Y

Module Y declares Container C, child container D

A
+B
  +C
    +D

XPath without prefix /A/B/C/D

Our current solution, only adds very first Module Prefix:    X:A/B/C/D  but in a very inefficient manner

Future (proper) solution should had at each module chance a prefix:   X:A/B/Y:C/D

Scope of bug-fix: Fix the performance issue by decouple the SQL-Query for all fragments form the implementation to get the prefix for the TOP level Fragment

A/C

  1. Functionality unchanged, see scenarios 1 & 2 below

  2. De-coupling can only be checked as code-review

Out of scope

  1. Insertion of prefix for different modules (separate:  Jira CPS-1301) 

 

Scenario 1. get for actual top-level container (with children). Note the insertoint of 'stores:' prefix (only for bookstore)

Scenario 2. get for any child-container (with children). Note the insertion of 'stores:' prefix (only for 'inventory')

 

Environment

None

Activity

Show:

Lee Anjella Macabuhay January 26, 2023 at 1:37 PM

Sourabh Sourabh October 26, 2022 at 1:57 PM

Fault Slip Through Analysis

Bug Category: Performance
Reason for Slippage: Missed in design analysis
Action needed to prevent slippage: Adding performance related possible (test) scenarios
Phase it should have been found in: Design/Review
Category of test it should have been found in: Unit Test
Description of test it should have been found in: NCMP-Profiling (https://lf-onap.atlassian.net/browse/CPS-1267)
Link(s) To JIRA improvement record: N/A

Done

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Created October 5, 2022 at 5:25 PM
Updated April 25, 2023 at 11:31 AM
Resolved October 26, 2022 at 1:58 PM