diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2024-04-26 10:09:54 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2024-04-26 10:48:29 +0100 |
commit | 2830723b8c5d5bb40c171c88f055adbc1a808f68 (patch) | |
tree | dd32cb1b04c1724614c9f3f7bdc683a1be09e803 /integration-test/src | |
parent | 2b979f63a4020b65a2a85ecdb2bfa2b970eb9f76 (diff) |
Faster module searches (CPS-2190 #3)
This greatly improves performance of module searches by eliminating
unneeded SQL queries via Hibernate lazy fetching.
Issue-ID: CPS-2190
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ie9e65017d0027366456f1741cc37b10679317b25
Diffstat (limited to 'integration-test/src')
-rw-r--r-- | integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/ModuleQueryPerfTest.groovy | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/ModuleQueryPerfTest.groovy b/integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/ModuleQueryPerfTest.groovy index 6efebd4eaf..add931a1ad 100644 --- a/integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/ModuleQueryPerfTest.groovy +++ b/integration-test/src/test/groovy/org/onap/cps/integration/performance/cps/ModuleQueryPerfTest.groovy @@ -86,11 +86,11 @@ class ModuleQueryPerfTest extends CpsPerfTestBase { and: 'operation completes with expected resource usage' recordAndAssertResourceUsage("Query for anchors with ${scenario}", expectedTimeInSeconds, resourceMeter.totalTimeInSeconds, - 150, resourceMeter.totalMemoryUsageInMB) + 5, resourceMeter.totalMemoryUsageInMB) where: 'the following parameters are used' scenario | yangModuleName || expectedTimeInSeconds - '1 KB module' | 'module0' || 3 - '1000 KB module' | 'module1' || 3 + '1 KB module' | 'module0' || 0.05 + '1000 KB module' | 'module1' || 0.05 } def 'Module query - Clean up test data.'() { |