Dear,
I am a new drools user and i start with drools 6
From drools guide they are an interested example about 'exists' over a
collection
exists (
Bus(color == "red") and
Bus(color == "blue")
)
But on my tests when i try to perform this test drools consume memory
until an 'out of memory'
It seem here that drools do a cross-product between all Bus object to
give back True or False
But if i do
That works fine and quickly
So simple question: why ?
Others question around 'exists', I want to specify over which collection
to use to minimize research space:
$city: City( $busList: busList )
exists ( Bus(color == "red" ) ) from $busList
exists ( Bus(color == "blue") ) from $busList
That work but here drools :
- take twice time same research space when it could be this in one pass....
- perform two 'from' task
Thanks for any explanation
Regards
_______________________________________________
drools-research mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/drools-research