Good afternoon everybody!
We are experiencing a slowdown in retrieving and listing FHIR resources in the Medplum API.
The searches and filters are fast, which is good! However, when we list all the records, there is a delay of approximately 1 minute when we have millions of records (in this specific case, approximately 9 million).
When we researched a little about the delay, we realized that the total records count query is taking a long time to fully scan the resource database. Has anyone ever experienced this? Did you find something that made this list of resources in the Medplum API more performant?
I hope you help me! A hug to everyone!
Yours sincerely;
Adriano Freitas.