I've a simple select query which return 200 rows. The query is iterated 1437 times. Technology : java 8, spring boot 2.1.3.RELEASE, tomcat, hibernate
At each iteration, the query becomes slower. The first query takes 55ms and the last query takes 702ms
However, when I start the same query in Junit "@RunWith(SpringJUnit4ClassRunner.class)" , the queries are not becoming slower. Every query takes +- 37ms
Log of first and last when running in Tomcat
Log of first and last when running junit