Mercurial > hg > orthanc-databases
diff Framework/Plugins/IDatabaseBackend.h @ 447:5881e4af5799 pg-transactions
measure DB latency
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 15 Jan 2024 18:27:20 +0100 |
parents | f16faa1fdc46 |
children | f0976163dbe1 |
line wrap: on
line diff
--- a/Framework/Plugins/IDatabaseBackend.h Mon Jan 15 15:21:43 2024 +0100 +++ b/Framework/Plugins/IDatabaseBackend.h Mon Jan 15 18:27:20 2024 +0100 @@ -349,15 +349,19 @@ virtual void ListAllLabels(std::list<std::string>& target, DatabaseManager& manager) = 0; + // New in Orthanc 1.12.X virtual bool HasAtomicIncrementGlobalProperty() = 0; + // New in Orthanc 1.12.X virtual int64_t IncrementGlobalProperty(DatabaseManager& manager, const char* serverIdentifier, int32_t property, int64_t increment) = 0; + // New in Orthanc 1.12.X virtual bool HasUpdateAndGetStatistics() = 0; + // New in Orthanc 1.12.X virtual void UpdateAndGetStatistics(DatabaseManager& manager, int64_t& patientsCount, int64_t& studiesCount, @@ -366,5 +370,12 @@ int64_t& compressedSize, int64_t& uncompressedSize) = 0; + // New in Orthanc 1.12.X + virtual bool HasMeasureLatency() = 0; + + // New in Orthanc 1.12.X + virtual uint64_t MeasureLatency(DatabaseManager& manager) = 0; + + }; }