Skip to content

Commit

Permalink
chore(rust): change sqlite configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjoDeundiak committed Dec 19, 2024
1 parent 697a720 commit e1b1bdd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,11 @@ impl SqlxDatabase {
let _ = connection
.execute(
r#"
PRAGMA synchronous = EXTRA;
PRAGMA synchronous = NORMAL;
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 e1b1bdd

Please sign in to comment.