Fixed
Details
Assignee
Mark GoodrichMark GoodrichReporter
Mark GoodrichMark GoodrichComplexity
LowFix versions
Priority
Should
Details
Details
Assignee
Mark Goodrich
Mark GoodrichReporter
Mark Goodrich
Mark GoodrichComplexity
Low
Fix versions
Priority
Created May 28, 2021 at 3:42 PM
Updated June 2, 2021 at 1:40 PM
Resolved June 2, 2021 at 2:26 AM
When saving a Person Attribute Type, the PersonAttributeType search index is updated (because the searchable property of that attribute may have changed):
https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/api/impl/PersonServiceImpl.java#L187
For databases with large numbers of persons/patients, rebuilding the search could take 20-30 minutes (or more).
So, we should explicitly test if the searchable property has changed, and only update the index if this is the case.
(Ideally, the index update could be asynchronous as well, but we can handle that in a separate ticket)