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 3, 2024
1 parent e05d990 commit db3b857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search-sync/search-sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class SearchSyncService {
private readonly personService: PersonService,
) {
this.searchSyncModel.deleteMany({});
// this.syncMovies();
this.syncMovies();
this.syncPersons();
}

Expand Down Expand Up @@ -108,7 +108,7 @@ export class SearchSyncService {
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_INDEX, this.movieService, 10000);
this.logger.log('Finished sync for movies');
}

Expand Down

0 comments on commit db3b857

Please sign in to comment.