On 5 July 2011 10:39, lansyj <span dir="ltr">&lt;<a href="mailto:lansyjp@gmail.com">lansyjp@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
We are planning to use Drools for a Blacklist validation logic which<br>
requires us to manage very long list (could be tens of thousands of IDs).<br>
Can we use the native Drools enumeration for this?</blockquote><div><br>What do you mean by &quot;native Drools enumeration&quot;? <br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 Would this be an optimal<br>
implementation?<br></blockquote><div><br>IDs such as phone numbers or email addresses are strings, so what sort of access do you need that&#39;s not efficiently feasible with a hash map or hash set? Detailed knowledge of the value disrtibution of your IDs might be used for an optimum hash function, but that&#39;s a technicality. <br>
<br>-W<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
The other option we were thinking of was to have a list managed separately<br>
in our core application and have in lucene indexed such that Drools rule<br>
checks against the index. But, as you can see, it creates a lot of<br>
development as well as maintenance overhead.<br>
<br>
Thanks in advance for any tips on this topic.<br>
<br>
Best Regard<br>
<br>
-lj<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Using-Enumeration-for-long-lists-tp3140051p3140051.html" target="_blank">http://drools.46999.n3.nabble.com/Using-Enumeration-for-long-lists-tp3140051p3140051.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>