jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Mehrotra (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OAK-1656) Provide lazy iterator for FileDataStore.getAllIdentifiers
Date Tue, 01 Apr 2014 11:02:14 GMT

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

Mime
View raw message