Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance improvements #841

Closed
wants to merge 3 commits into from
Closed

Conversation

tarunlalwani
Copy link
Collaborator

Performance improvements for caching merged to Digit 2.5

@ghost
Copy link

ghost commented Jul 12, 2021

DeepCode's analysis on #d79fbc found:

  • ℹ️ 2 minor issues. 👇

Top issues

Description Example fixes
Use java.util.ArrayList instead of java.util.LinkedList. Using java.util.LinkedList can lead to unnecessary performance overhead if the list is randomly accessed. Occurrences: 🔧 Example fixes
Printing the stack trace of java.lang.Exception. Production code should not use printStackTrace. Occurrences: 🔧 Example fixes

👉 View analysis in DeepCode’s Dashboard | Configure the bot

👉 The DeepCode service and API will be deprecated in August, 2021. Here is the information how to migrate. Thank you for using DeepCode 🙏 ❤️ !

If you are using our plugins, you might be interested in their successors: Snyk's JetBrains plugin and Snyk's VS Code plugin.

@sonarcloud
Copy link

sonarcloud bot commented Jul 12, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

public List<Boundary> getAllBoundariesByIdsAndTypeAndNumberAndCodeAndTenant(
BoundarySearchRequest boundarySearchRequest) {

return boundaryRepository.getAllBoundariesByIdsAndTypeAndNumberAndCodeAndTenant(boundarySearchRequest);
}


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding spring cache might give problems when we run more than one pod. For example, in case of _update it will evict cache only in the particular pod which handled that particular request. We will have to figure out such use cases and might have to use centralized caching using redis instead to avoid these problems.

@talele08 talele08 closed this Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants