Skip to content

Commit

Permalink
把 WAL 加回来,关掉 cache_spill(考虑到有 mmap 了)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Jan 12, 2025
1 parent a927cc3 commit f49b669
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void setupDatabase(File file) throws SQLException {
stmt.executeUpdate("PRAGMA synchronous = NORMAL");
stmt.executeUpdate("PRAGMA journal_mode = WAL");
stmt.executeUpdate("PRAGMA mmap_size = 50331648");
stmt.executeUpdate("PRAGMA cache_spill = 100");
;
try {
if (System.currentTimeMillis() - getLastMaintenanceTime() >= Duration.ofDays(Main.getMainConfig().getInt("persist.vacuum-interval-days")).toMillis()) {
if (System.getProperty("pbh.disableSQLiteVacuum") == null) {
Expand Down

0 comments on commit f49b669

Please sign in to comment.