Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

fix: performance of terminology server tests #6

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

liammoat
Copy link
Contributor

@liammoat liammoat commented Apr 12, 2024

In the Dorset downstream project, the Unit Tests fail to execute in a timely fashion. This is due to the IMemoryCache mock - and it's poor performance when the Snomed codes are populated.

This PR replaces the unnecessary mock, and uses a newly instantiated MemoryCache for each test execution.

With a full Snomed dataset, the Unit Tests now complete in a more reasonable time window. As seen here:

image

Note: I have also updated the test to use a Snomed code from an example provided in this NHS article.

@liammoat liammoat changed the title fix: performance of terminology server fix: performance of terminology server tests Apr 13, 2024
@gaurarpit
Copy link
Contributor

this is a very good catch and fix. thanks.

Copy link
Contributor

@gaurarpit gaurarpit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. approving.

@liammoat liammoat merged commit d4fe638 into main Apr 15, 2024
2 checks passed
@liammoat liammoat deleted the fix/snomed-performance branch April 15, 2024 07:14
@liammoat liammoat self-assigned this Apr 17, 2024
johncollinson2001 pushed a commit that referenced this pull request Apr 23, 2024
This PR introduces the latest version from the upstream GitHub project.

- Add pre-commit exclude (#1)
- Update Swagger Docs generation script to create directory (#2)
- Update Azure.Identity from 1.10.4 with CVE to patched version 1.11.0 (#5)
- AB#30325 make app reg an enterprise app (#3)
- fix: performance of terminology server tests (#6)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants