Details
-
Performance Improvement
-
Status: Waiting Approval
-
Major
-
Resolution: Unresolved
-
R3.3.6
-
None
Description
Some Xray actions are triggering asynchronous events multiple times. In long-running tasks like the pre-calculation of Requirement Status, this may lead to unnecessary operations occupying a large number of available threads.
Taking the TestSetsCustomField.java as an example, it'll trigger the pre-calculation:
- 1 T + N TS times;
- N (1 T + 1 TS) times;
where N is the number of Test Sets associated with the Test.
In sum:
- the requirements dependant of that specific Test are pre-calculated N + 1 times.
- the requirements dependant of the linked Test Sets are pre-calculated N + N times.
- Xray will be using 1 + N threads.
All operations that trigger this kind of events should be analyzed.