Didn't see any contribution guidelines, so hopefully unsolicited PRs are ok!
Sometimes you might want to only enable the N+1 detection in some environments (one example would be in adding this to a legacy codebase where logging every N+1 would be a lot of log messages in prod). Adding a property is a simple way to do it.
For property naming, I went with this flat version, but I could see hibernate.query.interceptor.n-plus-one-detection.enabled as more clear, but up to you how you want to break these up.
Happy to discuss this more or explore other approaches!
Didn't see any contribution guidelines, so hopefully unsolicited PRs are ok!
Sometimes you might want to only enable the N+1 detection in some environments (one example would be in adding this to a legacy codebase where logging every N+1 would be a lot of log messages in prod). Adding a property is a simple way to do it. For property naming, I went with this flat version, but I could see
hibernate.query.interceptor.n-plus-one-detection.enabled
as more clear, but up to you how you want to break these up.Happy to discuss this more or explore other approaches!