We are trying to figure out the best way to implement a rule.

 

Is there any difference in processing costs of the following 2 solutions:

1) A fact is inserted into a session and a rule's LHS is evaluated to check if the rule should fire

2) A query is executed on a session with the same criteria as the LHS for the rule from #1

 

Which one is more efficient or are they implemented the same way and there is no difference?

 

 

Thanks,


Dave McLoughlin OpenLogic