perf: open push data api

This commit is contained in:
archer
2023-08-29 10:40:48 +08:00
parent 19d7edb585
commit e0de04dddb
6 changed files with 51 additions and 77 deletions

View File

@@ -66,7 +66,7 @@ const ChunkImport = ({ kbId }: { kbId: string }) => {
// subsection import
let success = 0;
const step = 500;
const step = 300;
for (let i = 0; i < chunks.length; i += step) {
const { insertLen } = await postKbDataFromList({
kbId,