Skip to content

Commit 3fc2826

Browse files
authored
[db-deleter] lower limit of queries for smaller ticks (#17107)
1 parent 2d32895 commit 3fc2826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/gitpod-db/src/periodic-deleter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class PeriodicDbDeleter {
8686
const { deletionColumn, primaryKeys } = table;
8787
const markedAsDeletedQuery = `SELECT ${primaryKeys.join(", ")} FROM ${
8888
table.name
89-
} WHERE ${deletionColumn} = true LIMIT 500;`;
89+
} WHERE ${deletionColumn} = true LIMIT 100;`;
9090
const rows = await this.query(markedAsDeletedQuery);
9191

9292
const whereClauseFn = (row: any) => primaryKeys.map((pk) => `${pk}='${row[pk]}'`).join(" AND ");

0 commit comments

Comments
 (0)