3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00
This commit is contained in:
Dragory 2020-05-28 02:39:04 +03:00
parent ca9af4f24e
commit 1ff86defc3
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -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();