Showing Post From Hibernate
88 GB of Files Nobody Points At: Archive First, Purge Later, and the Hibernate Hook Underneath
A quarter of the original files on our two Cloudinary accounts have nothing pointing at them. 88.6 GB, about 222,000 files, and the part of it we can count in the database grows by roughly 700 rows a day.
None of them can be identified by looking at the file. You have to look everywhere else.
Read moreThe N+1 With No Query In It: JPA Fetch Types From First Principles
An export endpoint died at thirty seconds. Not degraded, died: the platform router gave up, the browser reported a CORS failure that had nothing whatsoever to do with CORS, and the UI showed a toast saying something went wrong.
I had three hypotheses inside twenty minutes of reading code. All three were wrong.
Read moresave, saveAndFlush, and REQUIRES_NEW: The Hibernate Questions Hiding in One Spring Service Method
Last week I was reading a teammate’s PR and stopped on a method that made me realise something: I’d been using save, flush, commit, and REQUIRES_NEW correctly for years — and if a junior had asked me to explain precisely what each one does and when, my answer would have been thinner than my code. Using a tool and being able to teach it are different skills, and the gap only shows when someone asks.


