Skip to content

Fix OOM issues and Cache checks in SearchParameterOperations#5409

Merged
jestradaMS merged 10 commits intomainfrom
hotfix/4.0.661-sprefreshoom
Feb 26, 2026
Merged

Fix OOM issues and Cache checks in SearchParameterOperations#5409
jestradaMS merged 10 commits intomainfrom
hotfix/4.0.661-sprefreshoom

Conversation

@jestradaMS
Copy link
Contributor

@jestradaMS jestradaMS commented Feb 25, 2026

Description

  • Filter out system-defined search parameters from updates
  • Process GetSearchPrameterUrls in smaller chunks to reduce peak memory usage
  • Refining cache validation logic to prevent unnecessary cache misses due to bad data
  • Removed scoped ISearchService from for loop and db logging to prevent memory leak due new instance of ISearchService for each status.

Related issues

Addresses AB#184228.

Testing

Describe how this change was tested.

Tested in PR build, locally, CI and in INT and finally in EUAP

FHIR Team Checklist

  • Update the title of the PR to be succinct and less than 65 characters
  • Add a milestone to the PR for the sprint that it is merged (i.e. add S47)
  • Tag the PR with the type of update: Bug, Build, Dependencies, Enhancement, New-Feature or Documentation
  • Tag the PR with Open source, Azure API for FHIR (CosmosDB or common code) or Azure Healthcare APIs (SQL or common code) to specify where this change is intended to be released.
  • Tag the PR with Schema Version backward compatible or Schema Version backward incompatible or Schema Version unchanged if this adds or updates Sql script which is/is not backward compatible with the code.
  • When changing or adding behavior, if your code modifies the system design or changes design assumptions, please create and include an ADR.
  • CI is green before merge Build Status
  • Review squash-merge requirements

Semver Change (docs)

Patch|Skip|Feature|Breaking (reason)

@jestradaMS jestradaMS added this to the CY25Q3/2Wk17 milestone Feb 25, 2026
@jestradaMS jestradaMS requested a review from a team as a code owner February 25, 2026 20:31
@jestradaMS jestradaMS added Bug-Reliability Reliability related bugs. Azure API for FHIR Label denotes that the issue or PR is relevant to the Azure API for FHIR Azure Healthcare APIs Label denotes that the issue or PR is relevant to the FHIR service in the Azure Healthcare APIs Schema Version unchanged No-PaaS-breaking-change No-ADR ADR not needed labels Feb 25, 2026
@jestradaMS jestradaMS merged commit a8e595f into main Feb 26, 2026
69 checks passed
@jestradaMS jestradaMS deleted the hotfix/4.0.661-sprefreshoom branch February 26, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Azure API for FHIR Label denotes that the issue or PR is relevant to the Azure API for FHIR Azure Healthcare APIs Label denotes that the issue or PR is relevant to the FHIR service in the Azure Healthcare APIs Bug-Reliability Reliability related bugs. No-ADR ADR not needed No-PaaS-breaking-change Schema Version unchanged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants