querylog: checkpoint every 8192 wal pages instead of 1000

This commit is contained in:
2026-08-21 18:43:45 +02:00
parent 324704b53f
commit 9b0b7c19f4
7 changed files with 140 additions and 3 deletions
+3 -1
View File
@@ -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;
}