comparison OrthancServer/Sources/Database/SQLiteDatabaseWrapper.cpp @ 5493:b3ebe249ed5b pg-transactions

At startup, when using a database plugin, display the latency to access the DB
author Alain Mazy <am@osimis.io>
date Mon, 15 Jan 2024 18:25:08 +0100
parents dceed5e3d6a9
children 4dd50c4b985a
comparison
equal deleted inserted replaced
5492:26877f4b306f 5493:b3ebe249ed5b
1334 version_(0), 1334 version_(0),
1335 dbCapabilities_(true, /* hasFlushToDisk */ 1335 dbCapabilities_(true, /* hasFlushToDisk */
1336 false, /* hasRevisionsSupport TODO: implement revisions in SQLite */ 1336 false, /* hasRevisionsSupport TODO: implement revisions in SQLite */
1337 true, /* hasLabelsSupport */ 1337 true, /* hasLabelsSupport */
1338 false, /* hasAtomicIncrementGlobalProperty */ 1338 false, /* hasAtomicIncrementGlobalProperty */
1339 false /* hasUpdateAndGetStatistics */) 1339 false, /* hasUpdateAndGetStatistics */
1340 false /* hasMeasureLatency */)
1340 { 1341 {
1341 db_.Open(path); 1342 db_.Open(path);
1342 } 1343 }
1343 1344
1344 1345
1348 version_(0), 1349 version_(0),
1349 dbCapabilities_(true, /* hasFlushToDisk */ 1350 dbCapabilities_(true, /* hasFlushToDisk */
1350 false, /* hasRevisionsSupport TODO: implement revisions in SQLite */ 1351 false, /* hasRevisionsSupport TODO: implement revisions in SQLite */
1351 true, /* hasLabelsSupport */ 1352 true, /* hasLabelsSupport */
1352 false, /* hasAtomicIncrementGlobalProperty */ 1353 false, /* hasAtomicIncrementGlobalProperty */
1353 false /* hasUpdateAndGetStatistics */) 1354 false, /* hasUpdateAndGetStatistics */
1355 false /* hasMeasureLatency */)
1354 { 1356 {
1355 db_.OpenInMemory(); 1357 db_.OpenInMemory();
1356 } 1358 }
1357 1359
1358 SQLiteDatabaseWrapper::~SQLiteDatabaseWrapper() 1360 SQLiteDatabaseWrapper::~SQLiteDatabaseWrapper()