Skip to content

Commit 5c7c24a

Browse files
committed
Reduce the batch size of search index.
1 parent 41905a5 commit 5c7c24a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/lib/search/updater.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class BatchIndexUpdater implements TaskRunner {
8686
await _ongoingBatchUpdate;
8787
}
8888
_batch.add(task);
89-
if (_batch.length < 20) {
89+
if (_batch.length < 5) {
9090
_batchUpdateTimer ??= new Timer(const Duration(seconds: 10), () {
9191
_updateBatch();
9292
});

0 commit comments

Comments
 (0)