-
Notifications
You must be signed in to change notification settings - Fork 18
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
fix: When changing the ontologies refresh the cache completely (DEV-4362) #3468
Conversation
13ceaff
to
9fcd321
Compare
9fcd321
to
43598d7
Compare
a5af74f
to
68cc849
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice simplification!
Question: Are you confident that the extra work the API now has to do does not cause any significant performance regressions? Should we dedicate some time to test this specifically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: Nice to see so much deleted!
question: Do you think it would be worth adding a test to assert that any change to an ontology also triggers a cache reload?
The added overhead is refreshing the ontology cache, which is ~ .4 seconds or less. However, where this is added I removed the after update checks which my guess is take a similar amount of time. All in all I think the "performance" did not decrease significantly.
No. Most of it should be covered with existing tests already. |
Grat, thanks! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3468 +/- ##
==========================================
- Coverage 83.04% 82.28% -0.77%
==========================================
Files 290 312 +22
Lines 23087 22576 -511
==========================================
- Hits 19172 18576 -596
- Misses 3915 4000 +85 ☔ View full report in Codecov by Sentry. |
Pull Request Checklist
Task Description/Number
Issue Number: DEV-
PR Type
Basic requirements for bug fixes and features
Does this PR introduce a breaking change?