Keith
this is spec compliant, if you want a custom version either hack it yourself
or talk to us (Rickard and I) for a custom version
marc
|-----Original Message-----
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Keith L. Musser
|Sent: Thursday, November 30, 2000 2:29 PM
|To: jBOSS-User
|Subject: [jBoss-User] findByPrimaryKey performance
|
|
|I'm looking at performance when a client accesses a BMP entity bean. My
|clients typically locate the bean using "findByPrimaryKey", and then
|invoke a method on the bean.
|
|JBoss keeps a cache of entity bean instances for quick access, so they
|don't need to be loaded from the DB. However, every time a client
|(including other beans) uses "findByPrimaryKey", my
|"ejbFindByPrimaryKey" method is called, even though the bean instance is
|already in JBoss' cache.
|
|Could you check your cache first, then call my ejbFind method only if
|its not already in the cache? That would save a lot of DB hits on
|frequently accessed entity beans.
|
|(Otherwise, I have to hit the database every time to determine whether
|the bean exists.)
|
|Keith L. Musser
|Integrated Dynamics, Inc.
|812-371-7777
|email: [EMAIL PROTECTED]
|
|
|
|
|--
|--------------------------------------------------------------
|To subscribe: [EMAIL PROTECTED]
|To unsubscribe: [EMAIL PROTECTED]
|Problems?: [EMAIL PROTECTED]
|
|
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]