Pārlūkot izejas kodu

WIP: Use non-synchronized db access

Stefan Schmidt 6 gadi atpakaļ
vecāks
revīzija
367a6e5402
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      code_boost/src/cxx/statistics_db.cpp

+ 2 - 0
code_boost/src/cxx/statistics_db.cpp

@@ -19,6 +19,8 @@ statistics_db::statistics_db(std::string database_path) {
     // creates the DB if not existing, opens the DB for read+write access
     db.reset(new SQLite::Database(database_path, SQLite::OPEN_CREATE | SQLite::OPEN_READWRITE));
 
+    db->exec("PRAGMA synchronous = OFF");
+
     // Read ports and services into portServices vector
     readPortServicesFromNmap();
 }