I tried MyBatis foreach statement to delete 500-like rows at once, but after the successful completion of the batch, part of the rows haven't been deleted which should be deleted.
What I suspect is how long mybatis dynamic query can be, because I am appending quite long items (each item is 40 to 50 chars long).
<delete id="delete" parameterType="List">
DELETE FROM
table_name
WHERE
column_name IN <foreach collection="list" item="item" separator="," open="(" close=")">#{item}</foreach>
</delete>
Or any other clue?
Appreciate your help!