Queries aren't "started". A query is executed at some time, and it returns ths<br>state of affairs at the time of this execution.<br>-W<br><br><div class="gmail_quote">On 1 November 2011 17:53, Robert Crawford <span dir="ltr"><<a href="mailto:crawford@kloognome.com">crawford@kloognome.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Well, the live query is started *before* any events get inserted, and I have<br>
a ViewChangedEventListener registered to listen to that query. I expected to<br>
see rowRemoved() called every time an event is expired, but instead only see<br>
it happening *MOST* of the time.<br>
<br>
For example, I have 5000 events inserted. The ViewChangedEventListener<br>
updates the corresponding database row as the events expire. I shut off the<br>
event feed (so nothing new is going into either the database or the session)<br>
and over time the events expire. I can watch the database being updated as<br>
the events expire, but then the number flattens out to 50-60 or so that just<br>
haven't been touched.<br>
<br>
As I understand it, expiration happens even if the event matches the<br>
conditions for a rule, so they're not being "retained" for that reason,<br>
right?<br>
<br>
Oh, and when I've had the system down for a while and I'm receiving a<br>
backlog of events, they simply seem to "disappear" on insertion. I haven't<br>
traced the path of execution yet, though.<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Live-Queries-and-Expired-Events-tp3469198p3471214.html" target="_blank">http://drools.46999.n3.nabble.com/Live-Queries-and-Expired-Events-tp3469198p3471214.html</a><br>
</font><div><div></div><div class="h5">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>
</div></div></blockquote></div><br>