Skip to content

Commit

Permalink
fix: 修复初始化查询索引时无法初始化所有条目的问题 (#725)
Browse files Browse the repository at this point in the history
* fix: 修复初始化查询索引时无法初始化所有条目的问题

* Revert "fix: 修复初始化查询索引时无法初始化所有条目的问题"

This reverts commit 520299d.

* fix: 去掉速率控制
  • Loading branch information
chivehao authored Nov 10, 2024
1 parent e76debf commit cf1cab4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ public IndicesServiceImpl(
public Mono<Void> rebuildSubjectIndices() {
return subjectRepository.findAll()
.flatMap(ReactiveSubjectDocConverter::fromEntity)
.limitRate(10)
.buffer(50)
.collectList()
.handle((subjectDocs, sink) -> {
try {
subjectSearchService.rebuild(subjectDocs);
Expand Down

0 comments on commit cf1cab4

Please sign in to comment.