From 4cad4b2b3605f26805b3407bf6293e4f50ab7419 Mon Sep 17 00:00:00 2001 From: Harun Kilic Date: Fri, 26 Nov 2021 14:18:03 +0100 Subject: [PATCH] Fixed batch size error on Postgresql --- .../plugin/default-search-plugin/indexer/indexer.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/plugin/default-search-plugin/indexer/indexer.controller.ts b/packages/core/src/plugin/default-search-plugin/indexer/indexer.controller.ts index 369d48e29a..61deefb4d7 100644 --- a/packages/core/src/plugin/default-search-plugin/indexer/indexer.controller.ts +++ b/packages/core/src/plugin/default-search-plugin/indexer/indexer.controller.ts @@ -401,7 +401,7 @@ export class IndexerController { } } - await this.queue.push(() => this.connection.getRepository(SearchIndexItem).save(items)); + await this.queue.push(() => this.connection.getRepository(SearchIndexItem).save(items, { chunk: 2500 })); } /**