Skip to content

Commit

Permalink
chore(rust): increase sqlite cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjoDeundiak committed Dec 19, 2024
1 parent 697a720 commit 9e29310
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ impl SqlxDatabase {
PRAGMA synchronous = EXTRA;
PRAGMA locking_mode = NORMAL;
PRAGMA busy_timeout = 10000;
PRAGMA cache_size = -50000; -- 50 MB
PRAGMA mmap_size = 52428800; -- 50 MB
"#,
)
.await
Expand Down

0 comments on commit 9e29310

Please sign in to comment.