Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

allowMultiQueries and continueBatchOnError: can be used together? (1 reply)

$
0
0
Hi all,

when using allowMultiQueries connection property, the performance of our application increases significatively(using updateBatch operations: java and mysql on different machines). Because our application is a batch job, with millions of queries to process in a daily basis, if an error occurs, query that faulted must be logged and process continues. In order to achieve this behaviour, we are using the continueBatchOnError connection property.

The problem is when we use both properties together. The getUpdateCounts() operation (on BatchUpdateException exception class) returns Statement.EXECUTE_FAILED for all queries so no batch operation continues executing the rest of the queries.

Are both properties not compatible? If they are, is there any way to now the query which faulted?

Thanks in advance

Viewing all articles
Browse latest Browse all 884

Trending Articles