Patient search api in Bahmni performs both partial and exact match search by identifier, name, person attributes, patient program attributes.
As the first step, I tried integrating lucene for patient search using identifier (partial and exact match) in our api.
Below is the info on benchmark for patient search by identifier: Total number of patients: 186944 Index size on disk for PatientIdentifier: 8.2 MB Response time of Lucene patient search api : 172 ms Response time of our old patient search api : 14577ms
Index size on disk for PersonName: 40MB Index size on disk for PersonAttribute: 6.8MB