Fix 3
This commit is contained in:
parent
ca9af4f24e
commit
1ff86defc3
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ async function cleanup() {
|
|||
qb.andWhere(`posted_at <= (NOW() - INTERVAL ${RETENTION_PERIOD}000 MICROSECOND)`);
|
||||
}),
|
||||
)
|
||||
.limit(100_000) // To avoid long table locks, delete max 100,000 rows at once
|
||||
.limit(50_000) // To avoid long table locks, limit the amount of messages deleted at once
|
||||
.delete()
|
||||
.execute();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue