Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

JPA  RSS feed

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I am using jpa.
i have a requirement like this
i have tables card,account,store, merchant,partner
i have to generate card and according corresponding account for that card.
when i generate 10000 card it takes 5 min (at a time )
when i generate 20000 card it takes 15 min (at a time )
when i generate 30000 card it takes 120min (at a time )
when i generate 40000 card it takes 10hr (at a time )
what may be the reaosn.

after persisting every 50 card i m doingg emp.flush, emp.clear


Thank
 
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Impossible to say without knowing how you're doing it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!