-3

I am exploring JDBC client of spring boot, and looking options to set batch size and fetch size.

But can not find any document/article explaining the same.

Is there a way preferbly in properties file to instruct spring boot to use it?

1 Answer 1

0

"Is there a way preferbly in properties file to instruct spring boot to use it?"

Short answer is NO.

Long answer you need to do it manually for each query you execute.

Also there is no universal way to do it. Solution will be different for different DB.

Sign up to request clarification or add additional context in comments.

2 Comments

I am executing query like this - jdbcClient.sql("myQuery").param("someParam).query(new MyRowMapper()).optional();...where to set batchsize and fetch size?
Inside myQuery.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.