Lennart Petersson wrote:

> ----- Original Message ----- 
> From: danch (Dan Christopherson) <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 05, 2001 11:37 PM
> Subject: Re: [JBoss-user] Re: Jboss Performance problems
> 
> 
> 
>>Actually, tuned-updates is a little more overhead, in both memory and time.
>>
>>
>>
>>>How is this archieved  ?
>>>
>>
>>JAWS saves the field values from the load operation and compares the 
>>current values with the saved ones, then only updates the modified fields.
>>
>>
> 
> Is then this conclusion correct: With a CMP bean, if I'm using isModified then it is 
>unnecessary (even bad) to use tuned-updates? Or does it depend on the kind of updates 
>involved with the bean, like it is a big entity but i often only change a status flag 
>on it then tuned-updates is still good?
> 
> 


I'd say it definately depends on what kinds of updates you're doing. The 
example you discuss is a pretty good one - I'd use tuned updates there. 
Note that if you have a large entity with a lot of different update 
patterns, the tuned-updates might interfere with some database's caching 
of query plans. This is becuase JAWS will be generating a lot of 
different SQL for the updates, and might overload caches in the DB server.

-danch




_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to