mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-22 00:59:07 -05:00
perf: disable sqlite mmap to reduce memory pressure
This commit is contained in:
parent
1595ec783d
commit
2bcddf8bbf
|
@ -19,7 +19,7 @@ PRAGMA foreign_keys = ON;
|
||||||
PRAGMA journal_size_limit = 32768;
|
PRAGMA journal_size_limit = 32768;
|
||||||
PRAGMA temp_store = 2; -- use memory, not temp files
|
PRAGMA temp_store = 2; -- use memory, not temp files
|
||||||
PRAGMA main.cache_size = 20000; -- 80MB max cache size per conn
|
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
|
/// Latest database version
|
||||||
|
|
Loading…
Reference in New Issue
Block a user