Fetching large number of records from MySQL through Java

十年热恋 提交于 2019-12-06 19:53:26

Answering my own question based on the research I did:

  1. Batching is not really effective for select queries, especially if you want to use the resultset of each query operation.

  2. Pagination - Good if you want to improve the memory efficiency, not for improving speed of execution. Speed comes down as you fire multiple queries with Limit, as every time JDBC has to connect to MySQL.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!