Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting hibernate fetch size in Spring boot

Tags:

java

hibernate

How to set the hibernate.jdbc.fetch_size property in Spring boot Application?

Can this be set into application.properties?

like image 929
R Ram Avatar asked Sep 17 '25 18:09

R Ram


1 Answers

You should use the prefix spring.jpa.properties.

Check the official docs here

So, in the end, your properties should look like this: spring.jpa.properties.hibernate.jdbc.fetch_size

like image 163
denisq Avatar answered Sep 19 '25 08:09

denisq