comparison Framework/PostgreSQL/PostgreSQLParameters.cpp @ 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
39 uri_.clear(); 39 uri_.clear();
40 ssl_ = false; 40 ssl_ = false;
41 lock_ = true; 41 lock_ = true;
42 maxConnectionRetries_ = 10; 42 maxConnectionRetries_ = 10;
43 connectionRetryInterval_ = 5; 43 connectionRetryInterval_ = 5;
44 enabledOptimizedRoutes_ = false;
44 } 45 }
45 46
46 47
47 PostgreSQLParameters::PostgreSQLParameters() 48 PostgreSQLParameters::PostgreSQLParameters()
48 { 49 {
90 91
91 ssl_ = configuration.GetBooleanValue("EnableSsl", false); 92 ssl_ = configuration.GetBooleanValue("EnableSsl", false);
92 } 93 }
93 94
94 lock_ = configuration.GetBooleanValue("Lock", true); // Use locking by default 95 lock_ = configuration.GetBooleanValue("Lock", true); // Use locking by default
96 enabledOptimizedRoutes_ = configuration.GetBooleanValue("EnableOptimizedRoutes", false);
95 97
96 maxConnectionRetries_ = configuration.GetUnsignedIntegerValue("MaximumConnectionRetries", 10); 98 maxConnectionRetries_ = configuration.GetUnsignedIntegerValue("MaximumConnectionRetries", 10);
97 connectionRetryInterval_ = configuration.GetUnsignedIntegerValue("ConnectionRetryInterval", 5); 99 connectionRetryInterval_ = configuration.GetUnsignedIntegerValue("ConnectionRetryInterval", 5);
98 } 100 }
99 101