I have a system which runs quite heavy MySQL queries, and we'd like to provide a way of interrupting the queries through JDBC. Statement.cancel()
seems like the way to go, and it effectively sends a KILL QUERY on a separate connection to the database. However, since we're dealing with MyISAM table, we don't have any transaction management for the operations.
I would be interested in knowing the effects a KILL QUERY has on a LOAD DATA INFILE statement, or on an INSERT.
It seems like LOAD DATA INFILE statements are bit riskier than your average INSERT, so I would like to know if killing the statement could leave the table in a corrupted state.
Thanks !