mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-12-22 16:35:51 -05:00
improvement: prevent spilling temp indexes to disk
This commit is contained in:
parent
d95adbcb3d
commit
e36c791c53
|
@ -16,6 +16,7 @@ pub const STARTUP_SQL: &str = r##"
|
|||
PRAGMA main.synchronous = NORMAL;
|
||||
PRAGMA foreign_keys = ON;
|
||||
PRAGMA journal_size_limit = 32768;
|
||||
PRAGMA temp_store = 2; -- use memory, not temp files
|
||||
pragma mmap_size = 17179869184; -- cap mmap at 16GB
|
||||
"##;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user