[
https://issues.apache.org/jira/browse/OAK-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chetan Mehrotra resolved OAK-1656.
----------------------------------
Resolution: Fixed
Fixed in http://svn.apache.org/r1583602
> Provide lazy iterator for FileDataStore.getAllIdentifiers
> ---------------------------------------------------------
>
> Key: OAK-1656
> URL: https://issues.apache.org/jira/browse/OAK-1656
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Priority: Minor
> Fix For: 0.20
>
>
> Currently {{FileDataStore.getAllIdentifiers}} evaluates all file eagerly and
> maintains the set in memory
> As an optimization i.e. prevent loading of all file names in memory we can
> use com.google.common.io.Files#fileTreeTraverser. This is currently used in
> org.apache.jackrabbit.oak.spi.blob.FileBlobStore#getAllChunkIds
> Same logic can be done for OakFileDataStore which extends the FileDataStore
--
This message was sent by Atlassian JIRA
(v6.2#6252)