The 15-Second API: The JPA N+1 Problem Sends Its Bill
A list API took 15 seconds, and the debug log showed thousands of SQL statements. The JPA N+1 problem was only part of the bill: a bag restriction, Cartesian products, and an unpaged full load came with it.