Hibernate Turned 11,000 Records Into 50 Million Rows

One JPQL line almost took down our onboarding platform. Here’s what happened, and the fix that made it 15x faster.