I've run across a fun little trick to simulate latency in your development environments when testing some SQL queries. Possible use-cases including to validate that backend latency won't bring down your frontend, or that your UX is still bearable, etc. https://twitter.com/gunnarmorling/status/1361061234569805832 The solution is PostgreSQL and Hibernate specific, though to doesn't have to be. Besides, … Continue reading Simulating Latency with SQL / JDBC
Tag: ExecuteListener
How to Detect Slow Queries with jOOQ
Just now, we implemented a nice little feature in jOOQ's code generator: https://github.com/jOOQ/jOOQ/issues/4974 It detects whenever the jOOQ code generator runs a slow query to reverse engineer schema meta information. Why? In our development and integration test environment, we don't have huge schemas with all the different performance edge cases put in place. For instance, … Continue reading How to Detect Slow Queries with jOOQ