diff Framework/PostgreSQL/PostgreSQLParameters.h @ 161:2ccde9c7311b optimized-routes

added new optimized REST routes. this is a temporary work to try to speed up some routes (used by LRO). This way, we avoid another app to access the Orthanc DB and we skip the plugin SDK update for a very specific route
author Alain Mazy <alain@mazy.be>
date Fri, 10 Jul 2020 13:26:47 +0200
parents 063aa53b5917
children
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLParameters.h	Tue Jul 07 20:38:40 2020 +0200
+++ b/Framework/PostgreSQL/PostgreSQLParameters.h	Fri Jul 10 13:26:47 2020 +0200
@@ -42,6 +42,7 @@
     bool         lock_;
     unsigned int maxConnectionRetries_;
     unsigned int connectionRetryInterval_;
+    bool         enabledOptimizedRoutes_;
 
     void Reset();
 
@@ -124,6 +125,11 @@
       return connectionRetryInterval_;
     }
 
+    bool GetEnabledOptimizedRoutes() const
+    {
+      return enabledOptimizedRoutes_;
+    }
+
     void Format(std::string& target) const;
   };
 }