How complex are the blacklist rules that you are planning to have?
From what you have described it sounds like it is just
substring/startswith matches?
If this is the case then you may be better just to
query lucene or the database
directly as you'll result in a very flat extremely wide graph that drools isn't
going
to be able to optimize at all - it will basically just iterate over every string doing
the
string comparison.
Lucene/the database are likely to be much more optimized and efficient for this.
If on the other hand your blacklist logic is much more complicated, taking into
account multiple criteria such as username, time of day, source ip address,
phase of the moon etc then drools may be easier to optimize development
speed and maintainance,.
Thomas
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-
bounces(a)lists.jboss.org] On Behalf Of lansyj
Sent: 05 July 2011 09:39
To: rules-users(a)lists.jboss.org
Subject: [rules-users] Using Enumeration for long lists
Hi,
We are planning to use Drools for a Blacklist validation logic which requires us
to manage very long list (could be tens of thousands of IDs).
Can we use the native Drools enumeration for this? Would this be an optimal
implementation?
The other option we were thinking of was to have a list managed separately
in our core application and have in lucene indexed such that Drools rule
checks against the index. But, as you can see, it creates a lot of development
as well as maintenance overhead.
Thanks in advance for any tips on this topic.
Best Regard
-lj
--
View this message in context:
http://drools.46999.n3.nabble.com/Using-
Enumeration-for-long-lists-tp3140051p3140051.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received
this message in error, please immediately notify the postmaster(a)nds.com and delete it from
your system as well as any copies. The content of e-mails as well as traffic data may be
monitored by NDS for employment and security purposes. To protect the environment please
do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United
Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603
8808 40-00
**************************************************************************************