querylog: checkpoint every 8192 wal pages instead of 1000
This commit is contained in:
+3
-1
@@ -351,7 +351,9 @@ pub const DataDir = struct {
|
||||
_ = io;
|
||||
var database = try db.Db.open(self.querylog_db_path, .{ .mode = .read_write_existing });
|
||||
errdefer database.close();
|
||||
try db.applyPragmas(&database, .{});
|
||||
try db.applyPragmas(&database, .{
|
||||
.wal_autocheckpoint_pages = querylog_schema.wal_autocheckpoint_pages,
|
||||
});
|
||||
return database;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user