changeset 5701:388aef262b1b find-refactoring

reduce the number of metadata retrievals
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Jul 2024 15:08:43 +0200
parents 1fab9ddaf702
children 359a8adb3802
files OrthancServer/Sources/ResourceFinder.cpp
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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);
       }