热门标签
更多>
搜索结果
查询Tags标签: excutemany,共有 2条记录-
mysql批量插入数据 excutemany
# coding=utf8""" 问题: 往数据库批量插入10条数据的时候,在for循环里面使用excute插入,接口请求耗时>1s,严重影响效率; 遂考虑使用excutemany批量插入,接口请求耗时400ms """# 逐条插入:cursor.excute() # 批量插入:cursor.exc…
2021/11/28 19:12:07 人评论 次浏览 -
mysql批量插入数据 excutemany
# coding=utf8""" 问题: 往数据库批量插入10条数据的时候,在for循环里面使用excute插入,接口请求耗时>1s,严重影响效率; 遂考虑使用excutemany批量插入,接口请求耗时400ms """# 逐条插入:cursor.excute() # 批量插入:cursor.exc…
2021/11/28 19:12:07 人评论 次浏览