ATLAS-4916 : Improve APIs where AtlasAccessRequest is used #374
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
1.Refactored code to reduce the time taken for processing classification updates for large numbers of entities.
2.Optimized internal method calls to avoid redundant operations.
How was this patch tested?
1.This patch was tested by measuring the time taken by the bulk/classification API to handle 260 items, both before and after the code changes.
2.The test was done using different numbers of classifications (3, 5, 10, and 20). The results were averaged over three runs to ensure accuracy.
Results after code changes:
Classifications Entities Time Taken (seconds)
20 260 93.48
10 260 39.33
5 260 25.55
3 260 18.07
Results before code changes:
Classifications Entities Time Taken (seconds)
20 260 157.67
10 260 78.84
5 260 39.42
3 260 23.65
3.The reading above was taken three times and then averaged to get the final result.
4.Additionally, logs for method-level performance changes were verified in metrics.log.