dcsimg
Performance issue updating large chunks of data through an EJB.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Wendell_Myers
Posted On:   Friday, May 17, 2002 07:51 AM

I have an application that at time will modify and read 100's of records at a time.
When modifying the data using a stateless session bean to interact with a bean managed
EJB which in turn accesses a DAO class, I experience poor performance.
If I would skip the EJB and access the database from the session bean, would this cause
any problems? I have done some tuning in my findBys and ejbStore methods but the performance,
even though better, is not acceptable. Any other suggestions?


Thanks

Wendell

Re: Performance issue updating large chunks of data through an EJB.

Posted By:   Manish_Mudgal  
Posted On:   Sunday, May 19, 2002 10:09 PM

Hi,
If you are updating the multiple records using facade pattern,it dont affect the performance because u update based on where condition.but if you are fetching the record not based on primary key then every time finder method return the enumeration contain the primary key to container,container return the remote to client.For each it calls the ejbload and ejbstore.so it degrades the performance.so for such condition u should always use direct DAO.
About | Sitemap | Contact