批量任务导入到数据库中:
如果这一批数据有30w条,执行到第6w条的时候,执行异常。该怎么处理。
1.异常后,能继续执行吗?如果继续执行,要保存执行异常的数据吗?
2.已经保存的数据,要回滚吗?
请问大家的经验是什么?该怎么做比较合适!
2022-08-01 12:16:00 【osc_47904062】
批量任务导入到数据库中:
如果这一批数据有30w条,执行到第6w条的时候,执行异常。该怎么处理。
1.异常后,能继续执行吗?如果继续执行,要保存执行异常的数据吗?
2.已经保存的数据,要回滚吗?
请问大家的经验是什么?该怎么做比较合适!
看业务需求。
如果业务需求要同时导入成功,那就加事务呗,失败就回滚;
如果不需要的话,就把导入的那部分代码try起来,失败的数据另外保存起来,人工修复,并且把失败原因也保存一下,看怎么修改代码或者导入的数据是不是有问题,避免后续相同的问题再次报错。
Process sibling data into tree data
sql中ddl和dml(数据库表与视图的区别)
R language fitting ARIMA model: use the auto.arima function in the forecast package to automatically search for the best parameter combination, model order (p, d, q), set the seasonal parameter to spe
Dameng replaces the officially authorized dm.key
Favorites|Mechanical Engineer Interview Frequently Asked Questions
数字化转型实践:世界级2B数字化营销的方法框架
【云享新鲜】社区周刊·Vol.73- DTSE Tech Talk:1小时深度解读SaaS应用系统设计
Aeraki Mesh Joins CNCF Cloud Native Panorama
一文带你彻底厘清 Kubernetes 中的证书工作机制
数字证书原理
【公开课预告】:超分辨率技术在视频画质增强领域的研究与应用
MarkDown公式指导手册
一文带你读懂云原生、微服务与高可用
How to successfully pass the CKA exam?
R language ggplot2 visualization: use the ggdensity function of the ggpubr package to visualize density plots, use the stat_central_tendency function to add mean vertical lines to the density and cust
Istio Meetup China:全栈服务网格 - Aeraki 助你在 Istio 服务网格中管理任何七层流量
蔚来又一新品牌披露:产品价格低于20万
Find objects with the same property value Cumulative number Summarize
Several methods of appending elements are commonly used in js: append, appendTo, after, before, insertAfter, insertBefore, appendChild
How to Integrate Your Service Registry with Istio?