Skip to content

Commit

Permalink
chore(sqlite-wal-cleanup-worker): reduce WAL cleanup interval to 15 min
Browse files Browse the repository at this point in the history
Based on testing a 4 hour interval is too long. We need a shorter
interval to make progress on WAL cleanup.
  • Loading branch information
djwhitt committed Aug 26, 2024
1 parent d018d61 commit b2650dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workers/sqlite-wal-cleanup-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import * as winston from 'winston';
import { StandaloneSqliteDatabase } from '../database/standalone-sqlite.js';

const CLEANUP_INTERVAL_MS = 4 * 60 * 60 * 1000; // 4 hours
const CLEANUP_INTERVAL_MS = 15 * 60 * 1000; // 15 minutes

export class SQLiteWalCleanupWorker {
private log: winston.Logger;
Expand Down

0 comments on commit b2650dd

Please sign in to comment.