yannbriancon / spring-hibernate-query-utils

Library giving tools to detect N+1 queries and count the queries generated with Spring and Hibernate
MIT License
135 stars 15 forks source link

Bug fix false positive find by id queries #9

Closed yannbriancon closed 4 years ago

yannbriancon commented 4 years ago

Issue: findById was triggering N+1 queries exception Solution: Check the stackTraceElements to find reference to $HibernateProxy and avoid detection of sun Proxy