From 01bb6e9a08c80ac910d4aa35ec9e537abc311a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Tue, 2 Jul 2024 15:56:30 +0000 Subject: [PATCH] PRAGMA journal_mode=OFF on debug database PRAGMA journal_mode=OFF should drastically reduce CPU overhead --- lib/ProxySQL_Admin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index 5921a3fd5..e94e54552 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -6627,6 +6627,7 @@ bool ProxySQL_Admin::init(const bootstrap_info_t& bootstrap_info) { debugdb_disk->execute("CREATE INDEX IF NOT EXISTS idx_debug_log_modnum ON debug_log (modnum)"); */ debugdb_disk->execute("PRAGMA synchronous=0"); + debugdb_disk->execute("PRAGMA journal_mode=OFF"); /* // DO NOT ATTACH DATABASE // it seems sqlite starts randomly failing. For example these 2 TAP tests: