Hi,
We are trying to use our current openmrs db in bahmni v0.92 which is around 1.5GB in size which already has lots of patient,concepts and encounter data.
So after starting visit for patient in Bhamni EMR and opening his dashboard it takes huge time of around 1min - 1.30min and same happens in consultation while saving encounter it always takes huge save time (>2.0min) and then throws error popup saying “Server error.Encounter information not saved” and on network tab we see a response as “Proxy error 502 on openmrs/ws/rest/v1/bahmnicore/bahmniencounter” for the below mentioned encounter endpoint call. But the encounter info does get saved on backend and also sync to odoo and openelis in like after (3-4 min).So in alltogether this step takes a huge time.
All these worked fast when we first tried using the initial bahmni openmrs DB which was before replacing with our openmrs DB.
The concerned endpoints which take huge time are:
1.) /openmrs/ws/rest/v1/bahmnicore/diagnosis/search?patientUuid=06ddc924-d7e8-4d7e-a282-c4f3e1d480dc
2.) /openmrs/ws/rest/v1/bahmnicore/bahmniencounter
Does the problem lies with the architecture? Urgent help required @gsluthra @swathivarkala @sravanthi17