JAVA-076 / Intermediate
Unbounded MyBatis <foreach> input arrays
Why is this a problem?
An IN clause with tens of thousands of values overloads the database.
How to fix it
java
if (ids.size() > 500) throw new IllegalArgumentException(); // Limit the count in the service