mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2025-08-31 19:30:48 -04:00
improvement: reduce event count for db writer pauses
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user