<div>to be honest I could do with some initial pointers, as I'm struggling with how to acheive this at all. I would have thought to somehow use accumulate, but as far as I can work out there's no way to specify attributes that match across facts, rather than match some constant.</div>
<div><br> </div>
<div class="gmail_quote">On 18 October 2010 15:14, Greg Barton <span dir="ltr"><<a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">It would be nice if we had an example of some rules. That way we can rule out obvious performance killers like cartesian products and multiple "from" clauses in one rule.<br>
<br>GreG<br>
<div>
<div></div>
<div class="h5"><br>On Oct 18, 2010, at 5:19, Tim 4076 <<a href="mailto:tm4076@gmail.com">tm4076@gmail.com</a>> wrote:<br><br>Hi,<br>I'm trying to use drools to do grouping of data according to patterns defined in my rules, but I'm having issues creating something that works in a reasonable amount of time (seconds). I've tried all sorts of permutations without much luck and would like to hear how others would do the same thing.<br>
<br>To give an example: I've got a big batch of transaction records and I want to aggregate all the records where the consumer id and product category are the same and the purchases were made within an hour of each other.<br>
<br>The fact that its matching the same values between facts, rather than against constants seems to scupper it somewhat.<br><br>I would go down the ETL route, but the idea is for non-techies to define their own aggregations using rules.<br>
<br>-Cheers. Tim<br><br><br></div></div>_______________________________________________<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>
<br><br><br><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>
</blockquote></div><br>