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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to