# HG changeset patch # User Sebastien Jodogne # Date 1720789723 -7200 # Node ID 388aef262b1ba0cff6c695044204b01d705bc28a # Parent 1fab9ddaf702745f910eb4d858e18a49ffb773b9 reduce the number of metadata retrievals diff -r 1fab9ddaf702 -r 388aef262b1b OrthancServer/Sources/ResourceFinder.cpp --- a/OrthancServer/Sources/ResourceFinder.cpp Fri Jul 12 15:02:59 2024 +0200 +++ b/OrthancServer/Sources/ResourceFinder.cpp Fri Jul 12 15:08:43 2024 +0200 @@ -625,7 +625,6 @@ if (request_.GetLevel() == ResourceType_Patient) { request_.SetRetrieveMainDicomTags(true); - request_.SetRetrieveMetadata(true); requestedPatientTags_.insert(tag); } else @@ -639,12 +638,10 @@ if (request_.GetLevel() == ResourceType_Study) { request_.SetRetrieveMainDicomTags(true); - request_.SetRetrieveMetadata(true); } else { request_.GetParentSpecification(ResourceType_Study).SetRetrieveMainDicomTags(true); - request_.GetParentSpecification(ResourceType_Study).SetRetrieveMetadata(true); } requestedStudyTags_.insert(tag); @@ -666,12 +663,10 @@ if (request_.GetLevel() == ResourceType_Study) { request_.SetRetrieveMainDicomTags(true); - request_.SetRetrieveMetadata(true); } else { request_.GetParentSpecification(ResourceType_Study).SetRetrieveMainDicomTags(true); - request_.GetParentSpecification(ResourceType_Study).SetRetrieveMetadata(true); } requestedStudyTags_.insert(tag); @@ -694,12 +689,10 @@ if (request_.GetLevel() == ResourceType_Series) { request_.SetRetrieveMainDicomTags(true); - request_.SetRetrieveMetadata(true); } else { request_.GetParentSpecification(ResourceType_Series).SetRetrieveMainDicomTags(true); - request_.GetParentSpecification(ResourceType_Series).SetRetrieveMetadata(true); } requestedSeriesTags_.insert(tag); @@ -721,7 +714,6 @@ else { request_.SetRetrieveMainDicomTags(true); - request_.SetRetrieveMetadata(true); requestedInstanceTags_.insert(tag); }