[英]Issue with jdbcTemplate.batchUpdate() for large list of queries
I am facing an issue with JdbcTemplate.batchUpdate(String[] queries)
method when processing bulk of queries. 处理大量查询时,
JdbcTemplate.batchUpdate(String[] queries)
方法遇到问题。
The statement is getting executed without any exception but updation is not reflected in database. 该语句无一例外地得到执行,但更新未反映在数据库中。 We are using sybase.
我们正在使用sybase。 The size of list of queries is around 7000+.
查询列表的大小约为7000多个。
Have anyone faced similar issue before? 有人遇到过类似的问题吗?
Thanks for your reply. 感谢您的回复。 I got the issue.
我知道了 It was very silly coding which was not logged properly.
这是非常愚蠢的编码,未正确记录。 The batchUpdate was called under a try block and in catch it was not logged to logger but system console.
在try块下调用了batchUpdate,并在catch中将其未记录到记录器,而是系统控制台。 The execution thrown exception as one of the queries were malformed.
由于查询之一的格式错误,导致执行抛出异常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.