We're updating the issue view to help you get more done. 

Hibernate temporary session usage monitoring

Description

Precondition:
In the case of N+1 db queries there is not so many ways to workaround the problem. Due to business constraints and the complexity of the system we have chosen making fetch = FetchType.LAZY as well as turning on the property: hibernate.enable_lazy_load_no_trans.
The point:
But we want to reduce the property usage eventually. Unfortunately, there is no easy way to do that. One we really need is monitoring, so we would really appreciate having a logging of opening a temporary session to initialize a collection.

Environment

None

Status

Assignee

Unassigned

Reporter

ViacheslavT

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major