Mercurial > hg > orthanc-databases
comparison 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 |
comparison
equal
deleted
inserted
replaced
160:84b6fc6f6b9b | 161:2ccde9c7311b |
---|---|
40 std::string uri_; | 40 std::string uri_; |
41 bool ssl_; | 41 bool ssl_; |
42 bool lock_; | 42 bool lock_; |
43 unsigned int maxConnectionRetries_; | 43 unsigned int maxConnectionRetries_; |
44 unsigned int connectionRetryInterval_; | 44 unsigned int connectionRetryInterval_; |
45 bool enabledOptimizedRoutes_; | |
45 | 46 |
46 void Reset(); | 47 void Reset(); |
47 | 48 |
48 public: | 49 public: |
49 PostgreSQLParameters(); | 50 PostgreSQLParameters(); |
122 unsigned int GetConnectionRetryInterval() const | 123 unsigned int GetConnectionRetryInterval() const |
123 { | 124 { |
124 return connectionRetryInterval_; | 125 return connectionRetryInterval_; |
125 } | 126 } |
126 | 127 |
128 bool GetEnabledOptimizedRoutes() const | |
129 { | |
130 return enabledOptimizedRoutes_; | |
131 } | |
132 | |
127 void Format(std::string& target) const; | 133 void Format(std::string& target) const; |
128 }; | 134 }; |
129 } | 135 } |