“`考察点:JDBC优化

 

要提升读取数据的性能,可以指定通过结果集(ResultSet)对象的setFetchSize()方法指定每次抓取的记录数(典型的空间换时间策略);要提升更新数据的性能可以使用PreparedStatement语句构建批处理,将若干SQL语句置于一个批处理中执行。

“`

Was this helpful?

0 / 0

发表回复 0

Your email address will not be published.