Thanks. Sorry for this question but it means we have to build our own openmrs-core jar ?
Or you could contribute a patch which makes it possible to select between them .
@frederic.deniger the change is to happen here. Thanks @dkayiwa for the pointers!
I donāt fully understand whatās at stake here, @ibacher, shouldnāt this always be async?
@mksd the downside is that while the index is rebuilding you make search for patients and not find them even though they are in the database⦠though thereās certainly a trade off between that and having the system take an hour to start up.
Sure, that makes perfect sense.
What do you guys think about the configuration mechanism here to drive sync vs async? Because the setting has to exist before a first startup, I would lean towards a runtime property, but what do others think?
A runtime property makes perfect sense to me. Iād even think it might make sense to default the property to using async.
We might even add a MassIndexerProgressMonitor implementation so we can notify the user when the initial indexing is done, if itās done asynchronously. Or even use a standard DB query while the index is in the process of being built⦠I realize that might given inconsistent results, but it could be better than finding nothing.