3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 15:45:03 +00:00
This commit is contained in:
Dragory 2020-05-28 02:39:04 +03:00
parent d9b6cffd8c
commit 3e52aa61f4

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