chore: 批量更新脚本与数据处理优化
1. 调整database.py批量处理记录数为400 2. 新增convert_available.py用于将available字段的JSON数组格式转换为逗号分隔字符串 3. 更新test.py为数据库查询导出脚本 4. 生成并更新SQL更新语句文件 5. 修正jupyter notebook中的数据库连接配置与代码逻辑
This commit is contained in:
+1
-1
@@ -132,4 +132,4 @@ if __name__ == "__main__":
|
||||
print(f"加载到 {len(records)} 条记录")
|
||||
|
||||
# 批量处理,先只跑3条测试
|
||||
process_records(records, output_file="update_statements.sql", limit=3)
|
||||
process_records(records, output_file="update_statements.sql", limit=400)
|
||||
|
||||
Reference in New Issue
Block a user