mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-12-22 16:35:51 -05:00
perf: reduce per thread mmap allocation for DB
This commit is contained in:
parent
6f7c080180
commit
129badd4e1
|
@ -16,7 +16,7 @@ pub const STARTUP_SQL: &str = r##"
|
|||
PRAGMA main.synchronous=NORMAL;
|
||||
PRAGMA foreign_keys = ON;
|
||||
PRAGMA journal_size_limit=32768;
|
||||
pragma mmap_size = 1073741824; -- 1024MB of mmap
|
||||
pragma mmap_size = 134217728; -- 128MB of mmap
|
||||
"##;
|
||||
|
||||
/// Latest database version
|
||||
|
|
Loading…
Reference in New Issue
Block a user