Limit perf logs
MODIFY
src/scheduler/tasks/LoggingDatabaseTableCleanupTask.ts
src/scheduler/tasks/LoggingDatabaseTableCleanupTask.ts
@@ -79,7 +79,7 @@ export default class LoggingDatabaseTableCleanupTask extends SchedulerTask {
try {
const lastLogMDB = global.database.getCollection(tenant.id, 'performances').find({})
.sort({ timestamp: -1 })
- .skip(10 * 1000 * 1000)
+ .skip(100 * 1000 * 1000)
.limit(1)
.project({ timestamp: 1 });
const lastLog = await lastLogMDB.toArray();

Limit perf logs