Title: Re: Performance for Finders
findByPrimayKey  allows the app server to pick the object from an entity cache without a roundtrip to the database. Custom finders will always require a database roundtrip (most app servers) even if the resulting row already has a representation in the cache.

/Johan

Den 03-08-06 10.05, skrev "Vikram Naik" <[EMAIL PROTECTED]>:

Hello All,

   Is there a performance difference between the findByPrimayKey and customFinders ?

Ofcourse the performance of the custom finders will depend on the query, but fot this case we can consider the query of the custom finders will be as simple as that of the findByPrimaryKey!!

Please comment.

TIA,
Vikram Naik
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST".  For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".



=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to