Re: Performance for Finders
Johan Eltes <[email protected]>
| Newsgroups | gmane.comp.java.sun.ejb.general |
|---|---|
| Message-ID | <BB56CF0A.68BA%[email protected]> |
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".