• Post Reply Bookmark Topic Watch Topic
  • New Topic

Persist 1000 records at a time  RSS feed

 
Rakesh Sahadevan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How 1000 records are persisted at a time in CMP Entity Beans ?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36441
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rakesh,
1000 trips to the database. If you want to be more efficient, you can use JDBC's batching.
 
Rakesh Sahadevan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IS it possible with CMP Beans? Its an interview question !!!
my answer is use BMP.Finally he told me its possible refer it!!!
 
sarah Marsh
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any answer?
 
Brian Tinnel
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouldn't you just set up a cmr field to link a master record to the 1000 children records? The gettor from the bean would then return a Collection of the child records.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!