What and when should I specify setFetchSize()?

后端 未结 2 438
走了就别回头了
走了就别回头了 2020-12-09 20:13

I see a lot of \"best practices\" guides for JDBC/MySQL that tells me to specify setFetchSize().

However, I have no idea when to specify, and what(statement, result

2条回答
  •  伪装坚强ぢ
    2020-12-09 20:37

    Found a good article with examples to your question:

    https://www.baeldung.com/jdbc-resultset

    7.1. Using Fetch Size on Statement 7.2. Using Fetch Size on ResultSet

提交回复
热议问题