1
0

sync charts one-at-a-time to reduce database contention and timeouts

This commit is contained in:
Hazelnoot
2024-12-17 10:37:29 -05:00
parent e2352839e4
commit 0b40f2734e
4 changed files with 32 additions and 38 deletions
@@ -31,11 +31,9 @@ export class ResyncChartsProcessorService {
// TODO: ユーザーごとのチャートも更新する
// TODO: インスタンスごとのチャートも更新する
await Promise.all([
this.driveChart.resync(),
this.notesChart.resync(),
this.usersChart.resync(),
]);
await this.driveChart.resync();
await this.notesChart.resync();
await this.usersChart.resync();
this.logger.succ('All charts successfully resynced.');
}