Hi - I'm having this slowness problem and I'd appreciate any help/ideas.
The scenario is as follow: 1. Load some 50 Jess rules (defrule/defquery) 2. Load some 9,000 facts (3,000 deffacts, 6000 asserts), all in the form: (PropertyValue ?x ?y ?z) - (1) and (2) together took some 25 seconds. This sounds good to me because some are loaded from external sites, such as http://www.w3c.org. Then, when I tried to add this rule without doing the (run): (defrule myrule (PropertyValue resource-loaded place-holder ?x) => (printout t ?x crlf) ) It took 40+ seconds! There should be no more than 10 to 15 matches. Actually this rule was already loaded in step (1). Repeated loading is not an issue here. I tried to modify it a little bit and it took equally long time, so did similar defquery's. Does Jess perform the actual matching when (defrule) is issued, or when (run) is issued? Even a brute force search would take no more than a few seconds for this kind of simple rule. Why it isn't so bad if the rule is loaded before the facts? The system works with Jess via DAMLJessKB, but I don't see how this might be a factor. Thanks! Xiaocheng Luan -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
