[OFBiz] Users - caching of queries

David E. Jones jonesde at ofbiz.org
Mon Oct 24 16:50:32 EDT 2005


The Entity Engine does not cache everything, it only uses the cache  
when the cached methods are called on the delegator, or in other  
words it is the code calling into the Entity Engine that decides what  
to cache.

These caches will auto-clear for all change operations going through  
the Entity Engine. As with all other caching mechanisms (including  
those in EJB servers) if an outside program makes changes in the  
database the cache will be stale.

If this is the case, you can still use the cache and set a timeout  
that is tolerable for you, like a half hour for product information  
or something, or just set a minimal timeout to effectively disable  
the cache...

Another option is to have your other program send cache clear calls  
to the OFBiz cache manager for more granular clearing to avoid  
performance problems...

-David


On Oct 24, 2005, at 10:08 AM, Helmut Eggebert wrote:

> Hello,
>
> I have a question about the entity engine.  Does the entity engine  
> cache queries, and do updates to the OFBiz database from an outside  
> source (EJBs from another application, for example) ever cause the  
> entity engine to display data that is outdated because it is read  
> from cache?
>
> Thanks very much!
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today -  
> it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/ 
> direct/01/
>
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2363 bytes
Desc: not available
Url : http://lists.ofbiz.org/pipermail/users/attachments/20051024/c2dcdc82/smime.bin


More information about the Users mailing list