Missing Bulk Operation (ARCH4053)
Key java.orm.missing-bulk-operation · Severity warning · Category orm
Repeating single-row inserts/updates in a loop when a bulk API exists produces needless round-trips. Collapse them into a batch API like saveAll.
Incorrect
Section titled “Incorrect”for (Product p : newProducts) { productRepository.save(p); // one insert at a time}Correct
Section titled “Correct”productRepository.saveAll(newProducts); // single bulk insertReplace the per-item persist calls in the loop with a bulk operation such as saveAll/insertAll.