Articles
SQL articles
Free, practical articles on Java, Spring, SQL and AI for backend developers.
-
GDPR data export implementation: stop missing tables
A GDPR data export goes stale with every new user table. Find the tables in PostgreSQL and add a JUnit test that fails when one has no export decision.
-
Track LLM token usage and cost per user in your app
Track LLM token usage and cost per user: one event row per model call, a dated price table, budgets checked before the call, and three SQL queries.
-
JPA N+1 problem: three ways to fix it in Hibernate
What the N+1 query problem is in JPA and Hibernate, why EAGER does not fix it, and how JOIN FETCH, @EntityGraph and batch fetching compare, with SQL counts.