Browse Source

fix(core): Fix batch size error on postgres when reindexing (#1242)

Harun Kilic 4 years ago
parent
commit
57be4c523b

+ 1 - 1
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 }));
     }
     }
 
 
     /**
     /**