Tue, 24 Aug 04

OJB and object caching, pt II

Posted in Java at 6:28 pm by moore | Permalink

Well, I was wrong, when I posted that OJB rc4 didn’t support caching. Because of the way the application is architected, there are two places where we grab data from the database. I know, I know, don’t repeat yourself. But when you’re using free JAAS modules and free O/R mapping tools, you can’t be too picky.

The upshot is, when I actually look at SQL statements for a typical two user session, I see 21 of a certain select statement for when caching using the org.apache.ojb.broker.cache.ObjectCacheEmptyImpl class, and only 6 when performing exactly the same user actions with the org.apache.ojb.broker.cache.ObjectCacheDefaultImpl class. Don’t ask me why it’s not a 2 to 1 ratio; I’m looking into it. (Deep are the ways of object caching.)

2 Comments »

  1. Cruises said,

    April 12, 2005 at 9:37 am

    Discount Cruises

  2. Blood Pressure said,

    April 13, 2005 at 8:48 pm

    blood pressure

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image


© Moore Consulting, 2003-2010