简体   繁体   English

有关大量查询的jdbcTemplate.batchUpdate()问题

[英]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.

相关问题 jdbcTemplate.batchUpdate 跳过策略 - jdbcTemplate.batchUpdate Skip policy jdbctemplate.batchupdate 是多线程的还是并发的? - Is jdbctemplate.batchupdate multithreaded or concurrent? 列表小于 getBatchSize() 的 jdbcTemplate.batchUpdate() 抛出 IndexOutOfBoundsException 错误 - jdbcTemplate.batchUpdate() with smaller list than getBatchSize() throws IndexOutOfBoundsException error 批量插入使用 jdbcTemplate.batchUpdate 混淆 - Batch insert using jdbcTemplate.batchUpdate confusion 为 jdbcTemplate.batchUpdate() 方法编写单元测试 - Write unit test for jdbcTemplate.batchUpdate() method 如何包括jdbctemplate.batchUpdate(String sql,List的两个参数 <Object[]> batchArgs)? - How to include two parameters for jdbctemplate.batchUpdate(String sql, List<Object[]> batchArgs)? 为什么 Spring 的 jdbcTemplate.batchUpdate() 这么慢? - Why Spring's jdbcTemplate.batchUpdate() so slow? 使用spring“ jdbcTemplate.batchUpdate”进行动态插入查询的批处理 - batch processing with dynamic insert query using spring “jdbcTemplate.batchUpdate” 有什么更好的方法检查JdbcTemplate.batchUpdate中的名称字段,名称表的SQL注入? - What better way to check SQL injection of names field, names tables in JdbcTemplate.batchUpdate? JdbcTemplate.batchUpdate() 在一项插入错误时返回 0,但将剩余项插入 sql 服务器数据库,尽管使用 @Transactional - JdbcTemplate.batchUpdate() returns 0, on insert error for one item but inserts the remaining item into sql server db despite using @Transactional
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM