From 6a7f246562d01f6bafd699b535407ec41beb0815 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Thu, 27 Mar 2025 04:05:35 +0800 Subject: [PATCH] update: increase limit of getBulkSnapshotsInNextSecond --- lib/db/snapshotSchedule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db/snapshotSchedule.ts b/lib/db/snapshotSchedule.ts index c056665..33dd654 100644 --- a/lib/db/snapshotSchedule.ts +++ b/lib/db/snapshotSchedule.ts @@ -275,7 +275,7 @@ export async function getBulkSnapshotsInNextSecond(client: Client) { FROM snapshot_schedule WHERE started_at <= NOW() + INTERVAL '15 seconds' AND status = 'pending' AND type = 'normal' ORDER BY started_at - LIMIT 100; + LIMIT 1000; `; const res = await client.queryObject(query, []); return res.rows;