[infinispan-issues] [JBoss JIRA] (ISPN-1865) Update indexes only when needed
Sanne Grinovero (JIRA)
jira-events at lists.jboss.org
Thu Feb 16 09:10:37 EST 2012
[ https://issues.jboss.org/browse/ISPN-1865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667093#comment-12667093 ]
Sanne Grinovero commented on ISPN-1865:
---------------------------------------
Consider as well using
{code}
org.infinispan.context.Flag.SKIP_INDEXING
{code}
> Update indexes only when needed
> -------------------------------
>
> Key: ISPN-1865
> URL: https://issues.jboss.org/browse/ISPN-1865
> Project: Infinispan
> Issue Type: Enhancement
> Components: Querying
> Reporter: Mathieu Lachance
> Assignee: Sanne Grinovero
> Fix For: 5.2.0.ALPHA1, 5.2.0.FINAL
>
>
> // put in cache a value with 2 field, one indexed and one not indexed.
> Value value = new Value();
> value.setNonIndexedFieldValue(123);
> value.setIndexedFieldValue(456);
> cache.put("key", value);
>
> // later...
> // get back value from cache and update the not indexed field
> Value value = cache.get("key");
> value.setNonIndexedFieldValue(789);
> cache.put("key", value);
> The second put operation will trigger index to update even tough it hasn't changed.
> Sanne suggested :
> " Thinking about it, there might be some situations in which we can detect it, for example if the put is going to carry a valid return value then we could compare values in string form.. nice, please open an improvement request on JIRA!"
> See https://community.jboss.org/thread/195303 for complete reference
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list