mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-09 21:29:06 -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 main.synchronous = NORMAL;
|
||||||
PRAGMA foreign_keys = ON;
|
PRAGMA foreign_keys = ON;
|
||||||
PRAGMA journal_size_limit = 32768;
|
PRAGMA journal_size_limit = 32768;
|
||||||
|
PRAGMA temp_store = 2; -- use memory, not temp files
|
||||||
pragma mmap_size = 17179869184; -- cap mmap at 16GB
|
pragma mmap_size = 17179869184; -- cap mmap at 16GB
|
||||||
"##;
|
"##;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user