Details
-
Bug
-
Status: Closed
-
Should
-
Resolution: Fixed
-
Platform 2.0.0
-
None
Description
Profiling of consecutive calls of the saveConcept method shows that much time is spent in 2 calls in RequiredDataAdvice:
https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/aop/RequiredDataAdvice.java#L266
https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/aop/RequiredDataAdvice.java#L272
Inspecting the Reflect class shows that we misused a library for reflection, which has built-in caching.