[jboss-user] [EJB 3.0] - Re: 10,000 Recorc Per Second (In EJB 3.0)
snau2005
do-not-reply at jboss.com
Mon Apr 23 09:32:08 EDT 2007
grdzeli_kaci,
anonymous wrote :
| | int count = 0;
| | for (int i = 0; i < usagesObjs.size(); i++) {
| | UsageObject usageObject = usagesObjs.get(i);
| | entityManager.persist(usageObject);
| | if (i / 50 >= 0) {
| | entityManager.flush();
| | count = 0;
| | }
| | count++;
| |
|
if (i / 50 >= 0) { - here perhaps is an error, shouldn't be count instead of i ?
i found my old test, run it again, and got 40 000 entries in 11-13 seconds, but my table have only 4 columns no indexes etc ...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039842#4039842
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039842
More information about the jboss-user
mailing list