Topic: hibernate能实现batch的insert吗? |
Print this page |
1.hibernate能实现batch的insert吗? | Copy to clipboard |
Posted by: dissip Posted on: 2004-08-06 12:28 hibernate能实现类似于PreparedStatement.addBatch() 的批量的insert吗? 似乎hibernate对update是批量处理的? |
2.Re:hibernate能实现batch的insert吗? [Re: dissip] | Copy to clipboard |
Posted by: michaelbeyond Posted on: 2004-08-10 16:40 不理解,多个对象save不可以吗? |
3.Re:hibernate能实现batch的insert吗? [Re: dissip] | Copy to clipboard |
Posted by: dengyin2000 Posted on: 2004-08-11 10:25 可以写个 save(Objcet[]); |
4.Re:hibernate能实现batch的insert吗? [Re: dissip] | Copy to clipboard |
Posted by: dissip Posted on: 2004-08-17 16:20 不理解,多个对象save不可以吗?[ 将hibernate的showsql设为true,当save10个同样的object时,会打出10遍同样的sql,似乎是10个等同的prepared statement的update, 我所说的“batch的insert“指的是只生成一个prepred statement, 将10个新对象用addBatch方法加入后,用executeBatch方法调用,在效率方面应该会好些。 不知hibernate是否支持? |
5.Re:hibernate能实现batch的insert吗? [Re: dissip] | Copy to clipboard |
Posted by: gispda Posted on: 2004-10-27 00:32 在3.1的版本将推出此功能. 现在3.0还在a版本测试。 |
6.Re:hibernate能实现batch的insert吗? [Re: dissip] | Copy to clipboard |
Posted by: findjob Posted on: 2004-10-28 20:54 差不多,好不了多少。 |
7.Re:hibernate能实现batch的insert吗? [Re: dissip] | Copy to clipboard |
Posted by: dennisjl Posted on: 2004-11-02 13:47 批量插入性能要好很多, 怎么会“好不了多少”? |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |