Commit 03ed6ee6 by 林冲

batch_size = 100000

1 parent 2d969626
...@@ -1247,7 +1247,7 @@ class SceneSplitProcessor: ...@@ -1247,7 +1247,7 @@ class SceneSplitProcessor:
self.logger.info(f" 收集到 {total_count} 条需要插入的记录") self.logger.info(f" 收集到 {total_count} 条需要插入的记录")
# 批量插入 # 批量插入
batch_size = 10000 batch_size = 100000
total_batches = (total_count + batch_size - 1) // batch_size total_batches = (total_count + batch_size - 1) // batch_size
self.logger.info(f" 开始批量插入,共 {total_batches} 个批次,每批 {batch_size} 条") self.logger.info(f" 开始批量插入,共 {total_batches} 个批次,每批 {batch_size} 条")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!