5 PostgreSQL Mistakes I See in Every Spring Boot App
Your ORM is lying to you a little. Here’s where. Here’s how it usually goes. Spring Boot app, Spring Data JPA, Postgres behind it. Everything is fast in dev, because dev has 200 rows. Staging is fine too. Then production hits a few million rows and suddenly the database CPU is at 90%, a deploy hangs for ten minutes, and someone in Slack asks “did anyone change anything?” Usually nobody changed anything. The problem was there from day one, it just needed data to show up. ...