[rules-users] counting Facts

Ansgar Konermann ansgar.konermann at googlemail.com
Mon Jul 25 15:12:38 EDT 2011


Am 25.07.2011 19:29, schrieb pamerida:
> if I insert int the WM the SegmentGruoup7 (that inside contains the
> SegmentGroup8) and then I insert SegmentGroup8 in the WM, wouldnt that be
> duplicating the information? or drools just holds a reference to this
> classes,
IIRC, Drools creates an additional FactHandle for each object reference
you insert into the working memory, but these handles are lightweight.
So the actual 'data' is not duplicated, only Drools-internal references are.

Best regards

Ansgar



More information about the rules-users mailing list