mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2025-07-28 15:38:28 -04:00
perf: disable sqlite mmap to reduce memory pressure
This commit is contained in:
@@ -19,7 +19,7 @@ PRAGMA foreign_keys = ON;
|
||||
PRAGMA journal_size_limit = 32768;
|
||||
PRAGMA temp_store = 2; -- use memory, not temp files
|
||||
PRAGMA main.cache_size = 20000; -- 80MB max cache size per conn
|
||||
pragma mmap_size = 4294967296; -- cap mmap at 4GB
|
||||
pragma mmap_size = 0; -- disable mmap (default)
|
||||
"##;
|
||||
|
||||
/// Latest database version
|
||||
|
Reference in New Issue
Block a user