I've developed a Spring Boot application and using MySql to store the value. It quite well when I use the API to store the value but when I used to store the rows using multiple of 1000 (1K, 10K, 100K, etc), it took a long time to complete. How can I find where it lacking time to store the data.
MySql insert queries took a longer time to insert a row. How can I find the slowness of Mysql query?
I have added the following line in logback.xml,
<Logger name="org.hibernate.type.descriptor.sql" level="trace"/>
But it gives the binding parameters twice for the same value, is this an issue?
select
schema0_.id as id1_0_,
schema0_.active as active2_0_,
schema0_.body as body3_0_,
schema0_.created_at as created_4_0_,
schema0_.created_by as created_5_0_,
schema0_.name as name6_0_,
schema0_.updated_at as updated_7_0_,
schema0_.version as version8_0_
from
my_schema schema0_
where
schema0_.name=?
and schema0_.version=?
and schema0_.active=1
binding parameter [1] as [VARCHAR] - [xxxxx]
binding parameter [1] as [VARCHAR] - [xxxxx]
binding parameter [2] as [VARCHAR] - [1.0]
binding parameter [2] as [VARCHAR] - [1.0]
extracted value ([id1_0_] : [BIGINT]) - [1]
extracted value ([id1_0_] : [BIGINT]) - [1]