Skip to content

Fix: Deduplicate JOIN FETCH results using LinkedHashSet

13fc8d2
Select commit
Loading
Failed to load commit list.
Open

Optimize getQueueEntries query performance - reduce joins from 59 to 11 #92

Fix: Deduplicate JOIN FETCH results using LinkedHashSet
13fc8d2
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 18, 2026 in 17s

Annotations

Check failure on line 263 in api/src/main/java/org/openmrs/module/queue/api/dao/impl/QueueEntryDaoImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "qe.startedAt" 3 times.

See more on https://sonarcloud.io/project/issues?id=openmrs_openmrs-module-queue&issues=AZ45ipb8iLpuLITvgZeE&open=AZ45ipb8iLpuLITvgZeE&pullRequest=92

Check failure on line 45 in api/src/main/java/org/openmrs/module/queue/api/dao/impl/QueueEntryDaoImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 29 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=openmrs_openmrs-module-queue&issues=AZ45ipb8iLpuLITvgZeF&open=AZ45ipb8iLpuLITvgZeF&pullRequest=92