From c270ae1434c4ad6d1dc99e72be0ca44257e0963f Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Tue, 20 Dec 2022 15:25:24 -0600 Subject: [PATCH] improvement: reduce event count for db writer pauses --- src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index 6ded528..23e46ba 100644 --- a/src/db.rs +++ b/src/db.rs @@ -41,7 +41,7 @@ pub const DB_FILE: &str = "nostr.db"; /// How many persisted events before optimization is triggered pub const EVENT_COUNT_OPTIMIZE_TRIGGER: usize = 500; /// How many persisted events before we pause for backups -pub const EVENT_COUNT_BACKUP_PAUSE_TRIGGER: usize = 5000; +pub const EVENT_COUNT_BACKUP_PAUSE_TRIGGER: usize = 1000; /// Build a database connection pool. /// # Panics