Skip to content

Engine+Mongo: Optimize _summary=count and _count=0 execution path [stu3/master]#1127

Draft
kennethmyhra wants to merge 1 commit intoFirelyTeam:stu3/masterfrom
kennethmyhra:backport/pr-1126-to-stu3-master
Draft

Engine+Mongo: Optimize _summary=count and _count=0 execution path [stu3/master]#1127
kennethmyhra wants to merge 1 commit intoFirelyTeam:stu3/masterfrom
kennethmyhra:backport/pr-1126-to-stu3-master

Conversation

@kennethmyhra
Copy link
Collaborator

This creates a dedicated path in our code to retrieve only the count matching the search query. On the MongoDB side of this we use MongoDB's countDocuments().

Before this change we would retrieve the FHIR resources then discarding them later in the request pipeline, specifically in the OutputFormatter.

This creates a dedicated path in our code to retrieve only the count
matching the search query. On the MongoDB side of this we use
MongoDB's countDocuments().

Before this change we would retrieve the FHIR resources then discarding
them later in the request pipeline, specifically in the OutputFormatter.
@kennethmyhra kennethmyhra marked this pull request as draft March 8, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant