" Typically, a rulebase would be generated and cached on first
use;
to save
on the continually re-generation of the Rule Base; which is
expensive."
Read: Cache the rulebase (the rulebase object) with a Cache
mechanism of your choice.
AFAIK there is no dedicated caching mechanism in Drools per se.
This makes sense, otherwise the next person would look for cache
distribution, cache synchronization in a cluster. A can of worms that
should not be touched.
For example we use JBOSS TreeCache and are happy with it. This may be
overkill, simpler implementations like oscache may just be fine - all
depends on your requirements and deployment situation.
Cheers,
Ingomar
Am 11.08.2008 um 13:50 schrieb raj_drools:
Hi ,
i'm trying to implement caching of rules .
in the manual there is a statement as follows :
" Typically, a rulebase would be generated and cached on first use;
to save
on the continually re-generation of the Rule Base; which is
expensive."
how does rule base caches rules ? is there any method to cache the
rules ?
how can i implement caching in Drools in order to avoid loading
rules all
the times ?
--
View this message in context:
http://www.nabble.com/Caching-RuleBase-in-Drools-tp18924137p18924137.html
Sent from the drools - user mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users