significance of Cache

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
su2
Reply | Threaded
Open this post in threaded view
|

significance of Cache

su2
Hello Friends,

What is the significance of Cache in the OFBiz system?  Why it is there or why its important to have.

I appreciate your help.

Thank you.
Su-
Reply | Threaded
Open this post in threaded view
|

Re: significance of Cache

James McGill-5
On Fri, Oct 9, 2009 at 12:10 PM, su2 <[hidden email]> wrote:

>
> Hello Friends,
>
> What is the significance of Cache in the OFBiz system?  Why it is there or
> why its important to have.
>


Cache is used for different things that are I/O intensive.  The main use of
cache is for entities to reduce the number of database queries, which will
be the slowest operation of all.  In practice, a few entities are accessed
very often and rarely change, so it creates an ideal opportunity for
caching.
Cache is also used for things that would have a lot of disk access, like
Screens.

The entity cache is actually very simple and easy to understand.  Have a
look at framework/entity/src/org/ofbiz/entity/cache/EntityCache.java  and
think about how an instance of this is used by the Delegator.


--
James McGill
Phoenix AZ