opensrp / fhircore

FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
https://smartregister.org
Apache License 2.0
50 stars 39 forks source link

Data search optimization for Location Widget #3179

Closed ndegwamartin closed 1 month ago

ndegwamartin commented 3 months ago

Overview We have the Searchable Multi-select Widget implemented as defined here https://github.com/opensrp/fhircore/issues/3068. However, loading data has noticeable latency. We need to investigate various approaches to improve this.

The outcomes of this investigation/implementation will probably be re-used to improve other aspects of the application.

ellykits commented 2 months ago

The issue on performance occurs only when loading data from the database (similar to other data loading issues reported). Do you know if we need to sync all Location resources? More data result to slower queries. The rendering and search performance is insignificant.

ndegwamartin commented 2 months ago

cc @f-odhiambo @dubdabasoduba

ellykits commented 1 month ago

The performance here can be mitigated by reducing the amount of Location data needed other than that any optimizations that will be made on SDK-generated queries will benefit us. I just wanted to let you know that I'm closing this issue for now.