Very simple Java configuration for monitoring SQL queries with P6Spy and Hikari Connection Pool
2 min readFeb 28, 2020
In case you need to log the SQL queries and execution time that a driver sends to the database you can use P6Spy. Maybe you want to do this for performance tuning of an application in order to find the problematic packages or code that degradates the system. The idea in general is that you replace the original native driver (the…