Skip to content

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

Open
shubhangiisinghh wants to merge 6 commits into
openmrs:mainfrom
shubhangiisinghh:optimize-queue-entry-query
Open

Optimize getQueueEntries query performance - reduce joins from 59 to 11#92
shubhangiisinghh wants to merge 6 commits into
openmrs:mainfrom
shubhangiisinghh:optimize-queue-entry-query

refactor: use fetch joins on shared criteria path instead of hand-wri…

974e2c1
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jul 24, 2026 in 14s

Annotations

Check failure on line 53 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 "patient" 3 times.

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

Check failure on line 56 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 "visit" 4 times.

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

Check failure on line 62 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 "startedAt" 4 times.

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

Check failure on line 52 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 "queue" 5 times.

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