Skip to content

Files

Latest commit

 

History

History

HibernateSpringBootDataSourceProxy

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

View Query Details Via DataSource-Proxy Library

Description: View the query details (query type, binding parameters, batch size, execution time, etc) via DataSource-Proxy

Key points:

  • for Maven, add in pom.xml the datasource-proxy dependency
  • create an bean post processor to intercept the DataSource bean
  • wrap the DataSource bean via ProxyFactory and an implementation of MethodInterceptor

Output example:


If you need a deep dive into the performance recipes exposed in this repository then I am sure that you will love my book "Spring Boot Persistence Best Practices"If you need a hand of tips and illustrations of 100+ Java persistence performance issues then "Java Persistence Performance Illustrated Guide" is for you.