You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2013/09/24 13:29:02 UTC

[jira] [Commented] (OAK-1025) Keep value histories in sorted map

    [ https://issues.apache.org/jira/browse/OAK-1025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13776223#comment-13776223 ] 

Marcel Reutegger commented on OAK-1025:
---------------------------------------

NodeDocuments now has typed Maps for value histories. The key is now a {{Revision}} instead of {{String}}. This allows to keep the value history maps sorted and limits the reads on the histories. At the same time it also avoids formatting and parsing of Revisions.

Implemented in revision: http://svn.apache.org/r1525856
                
> Keep value histories in sorted map
> ----------------------------------
>
>                 Key: OAK-1025
>                 URL: https://issues.apache.org/jira/browse/OAK-1025
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core, mongomk
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>
> The revision/value maps are currently exposed as simple {{Maps}} only. This requires to look at all entries to find out, which one is the most recent valid value. The implementation should be changed to implement {{NavigableMap}} and preferably use {{Revision}} as key instead of the string representation. This avoids the rather frequent parsing and string formating of revisions.

--
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