Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use left outer join fetch when retrieving the image.format #144

Merged
merged 2 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ dependencies {
implementation 'io.zipkin.reporter2:zipkin-sender-okhttp3:2.10.0'
implementation 'ch.qos.logback:logback-classic:1.3.14'
implementation 'org.slf4j:log4j-over-slf4j:1.7.32'
implementation 'com.glencoesoftware.omero:omero-zarr-pixel-buffer:0.4.0'
implementation 'com.glencoesoftware.omero:omero-zarr-pixel-buffer:0.4.1'
implementation 'com.glencoesoftware.omero:omero-ms-core:0.9.0'
implementation 'io.vertx:vertx-web:3.8.1'
implementation 'io.vertx:vertx-config:3.8.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ protected Image queryImageData(IQueryPrx iQuery, Long imageId)
.findByQuery("select i from Image as i"
+ " left outer join fetch i.details.externalInfo "
+ " join fetch i.pixels as p"
+ " join fetch i.format"
+ " left outer join fetch i.format"
+ " left outer JOIN FETCH i.datasetLinks as links "
+ " left outer join fetch links.parent as dataset "
+ " left outer join fetch dataset.projectLinks as plinks "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ protected Map<Long, Pixels> retrievePixDescription(
iQuery.findAllByQuery(
"select p from Pixels as p "
+ "join fetch p.image as i "
+ "join fetch i.format "
+ "left outer join fetch i.format "
+ "left outer join fetch i.details.externalInfo "
+ "left outer join fetch i.wellSamples as ws "
+ "left outer join fetch ws.well as w "
Expand Down