Skip to content

Commit

Permalink
perf: optimize search sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwitr0 committed Apr 4, 2024
1 parent db3b857 commit 51e3d66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/search-sync/search-sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,16 @@ export class SearchSyncService {
@Cron(CronExpression.EVERY_WEEK)
async syncMovies() {
this.logger.log('Starting sync for movies');
await this.syncEntity<Movie>(MOVIE_V1_4_INDEX, this.movieService, 10000);
// await this.syncEntity<Movie>(MOVIE_INDEX, this.movieService, 10000);
// await this.syncEntity<Movie>(MOVIE_V1_4_INDEX, this.movieService, 10000);
await this.syncEntity<Movie>(MOVIE_INDEX, this.movieService, 10000);
this.logger.log('Finished sync for movies');
}

@Cron(CronExpression.EVERY_WEEK)
async syncPersons() {
this.logger.log('Starting sync for persons');
await this.syncEntity<Person>(PERSON_V1_4_INDEX, this.personService, 10000);
// await this.syncEntity<Person>(PERSON_INDEX, this.personService, 10000);
// await this.syncEntity<Person>(PERSON_V1_4_INDEX, this.personService, 10000);
await this.syncEntity<Person>(PERSON_INDEX, this.personService, 10000);
this.logger.log('Finished sync for persons');
}
}

0 comments on commit 51e3d66

Please sign in to comment.