[
https://issues.apache.org/jira/browse/JCR-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528385
]
Thomas Mueller commented on JCR-1138:
-------------------------------------
It does not need to be the insertion order, it can be any order. For
BundleFsPersistenceManager the easiest approach would be sort by UUID. For
BundleDbPersistenceManager it could be UUID as well, or anything where an index
exists. For an in-memory persistence manager HashMap would not always work
because the table could be resized. LinkedHashMap would work but not
efficiently (you can't get an iterator starting from a certain point).
SortedMap would be better (using the tailMap method).
> Data store garbage collection
> -----------------------------
>
> Key: JCR-1138
> URL: https://issues.apache.org/jira/browse/JCR-1138
> Project: Jackrabbit
> Issue Type: Improvement
> Components: core
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
>
> Currently the data store garbage collection needs to be run manually. It
> should be simpler to use (maybe tool based), or automatic.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.