EntityBeans Performance

R

Ray

Hi,

Can anyone here share their experiences with EntityBeans? I heard that
there is a performance issue using it since an instance of an
EntityBean represents a row in a table and updating 10,000 rows means
instantiating 10,000 EBs.

Is it a good idea to use EntityBeans?

-Ray
 
B

Bjoern

Ray said:
Hi,

Can anyone here share their experiences with EntityBeans? I heard that
there is a performance issue using it since an instance of an
EntityBean represents a row in a table and updating 10,000 rows means
instantiating 10,000 EBs.

Is it a good idea to use EntityBeans?

It's not a good idea to use them just to represents rows in a table. I
think they are meant to encapsulate more 'coarse grained' business
logic/functionality. I guess 'updating 10000 rows' could be an example
for such a function. Even Sun themselves recommend using extra Data
Access Objects for some kinds of Database use.

It's definitely easy to get it wrong with entity beans and really create
performance issues.


Bjoern

--


Let's not weep for their evil deeds,
but for their lack of imagination
(Nick Cave)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top