{"id":174,"date":"2004-08-24T18:28:22","date_gmt":"2004-08-25T00:28:22","guid":{"rendered":"http:\/\/www.mooreds.com\/wordpress\/?p=174"},"modified":"2004-08-24T18:28:22","modified_gmt":"2004-08-25T00:28:22","slug":"ojb-and-object-caching-pt-ii","status":"publish","type":"post","link":"https:\/\/www.mooreds.com\/wordpress\/archives\/174","title":{"rendered":"OJB and object caching, pt II"},"content":{"rendered":"<p>Well, I was wrong, when I posted that <a href='http:\/\/www.mooreds.com\/weblog\/archives\/000159.html'>OJB rc4 didn&#8217;t support caching<\/a>.  Because of the way the application is architected, there are two places where we grab data from the database.  I know, I know, don&#8217;t repeat yourself.  But when you&#8217;re using <a href='http:\/\/free.tagish.net\/jaas\/doc-1.0.3\/index.html'>free JAAS modules<\/a> and <a href='http:\/\/db.apache.org\/ojb'>free O\/R mapping tools<\/a>, you can&#8217;t be too picky.<\/p>\n<p>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&#8217;t ask me why it&#8217;s not a 2 to 1 ratio; I&#8217;m looking into it.  (Deep are the ways of object caching.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, I was wrong, when I posted that OJB rc4 didn&#8217;t support caching. Because of the way the application is architected, there are two places where we grab data from [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-174","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":0,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}