[infinispan-issues] [JBoss JIRA] (ISPN-2686) Enhance Mapper API with lazy loaded value

Mircea Markus (JIRA) jira-events at lists.jboss.org
Thu Jan 10 06:53:08 EST 2013


    [ https://issues.jboss.org/browse/ISPN-2686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744728#comment-12744728 ] 

Mircea Markus commented on ISPN-2686:
-------------------------------------

{quote}When entry.getValue() is called, the value should be loaded from store or maybe remote node.{quote}
This would be a tradeoff between loading more(potentially unnecessary) data in less queries(no query for the needed values) and less data in more queries (additional query to get the value when needed). I'd say the former is more suited for the general case: unless you don't use (almost) any values or the values are rather large/costly to fetch.
                
> Enhance Mapper API with lazy loaded value
> -----------------------------------------
>
>                 Key: ISPN-2686
>                 URL: https://issues.jboss.org/browse/ISPN-2686
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Distributed Execution and Map/Reduce
>    Affects Versions: 5.2.0.Beta6
>            Reporter: Thomas Fromm
>            Assignee: Vladimir Blagojevic
>
> In situations where Map/Reduce is used and the value is not (always) needed at the Mapper, the value could be loaded lazy, when the map(..) interface is slightly changed:
> map(Entry<KIn, VIn> entry, Collector<Entry<KIn, VIn>> collector) 
> When entry.getValue() is called, the value should be loaded from store or maybe remote node.
> Maybe this change to Entry would be also useful for event api ISPN-1802

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list