Skip to content

Commit 30a0be8

Browse files
committed
Use mmap for the entire db, even if it is large
1 parent 237b200 commit 30a0be8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlitestore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var pragmas = [
88
'PRAGMA main.cache_size=10000',
99
'PRAGMA main.locking_mode=EXCLUSIVE',
1010
'PRAGMA main.synchronous=OFF', // more dangerous, but fast
11-
'PRAGMA mmap_size=268435456', // use fast mmap
11+
'PRAGMA mmap_size=1099511627776', // use fast mmap for entire db
1212
//'PRAGMA main.synchronous=NORMAL',
1313
//'PRAGMA main.journal_mode=WAL', // WAL is annoying for distributed files
1414
];

0 commit comments

Comments
 (0)