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 "Michael Dürig (JIRA)" <ji...@apache.org> on 2014/12/10 12:12:12 UTC

[jira] [Updated] (OAK-2333) SegmentMK startup slow with large journals

     [ https://issues.apache.org/jira/browse/OAK-2333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dürig updated OAK-2333:
-------------------------------
    Attachment: OAK-2333.patch

Proposed patch. With the patch parsing a {{journal.log}} with 400k entries came down from 12s to 12ms on my machine. [~alex.parvulescu] please have a look.

> SegmentMK startup slow with large journals
> ------------------------------------------
>
>                 Key: OAK-2333
>                 URL: https://issues.apache.org/jira/browse/OAK-2333
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segmentmk
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>            Priority: Minor
>         Attachments: OAK-2333.patch
>
>
> There is some slowness in instantiating a {{FileStore}} when the {{journal.log}} file becomes large as that file is fully read line by line. As in most cases only the last line is actually needed, I suggest to optimise for this use case. This will also positively affect the various tools in {{oak-run}} as they will start up much slower on big repositories. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)