]
RH Bugzilla Integration commented on ISPN-4848:
-----------------------------------------------
Dave Stahl <dstahl(a)redhat.com> changed the Status of [bug
Offer way to implement includeCurrentState based on indexed query
-----------------------------------------------------------------
Key: ISPN-4848
URL:
https://issues.jboss.org/browse/ISPN-4848
Project: Infinispan
Issue Type: Feature Request
Reporter: Emmanuel Bernard
Based on the infinispan-dev mailing list discussion from September 2014 titled
'Feedback and requests on clustered and remote listeners'.
Loading the whole state of the data grid to then filter / convert them can be costly
especially if data has been passivated.
An alternative could be offered that would delegate the includeCurrentState filtering
with a global indexed query. That query would need to be provided by the user. While the
query is run, the list of change events matching should be piled up and released once the
query has be run and the converted events are send to the clustered listener.
Maybe that should be only done for "continuous" queries as we could use the
query for both the initial and continuous side of the query transparently.