mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-25 10:09:08 -05:00
improvement: reduce event count for db writer pauses
This commit is contained in:
parent
64bd983cb6
commit
c270ae1434
|
@ -41,7 +41,7 @@ pub const DB_FILE: &str = "nostr.db";
|
||||||
/// How many persisted events before optimization is triggered
|
/// How many persisted events before optimization is triggered
|
||||||
pub const EVENT_COUNT_OPTIMIZE_TRIGGER: usize = 500;
|
pub const EVENT_COUNT_OPTIMIZE_TRIGGER: usize = 500;
|
||||||
/// How many persisted events before we pause for backups
|
/// 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.
|
/// Build a database connection pool.
|
||||||
/// # Panics
|
/// # Panics
|
||||||
|
|
Loading…
Reference in New Issue
Block a user