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

Chetan Mehrotra edited comment on OAK-1724 at 4/16/14 4:01 PM:
---------------------------------------------------------------

[patch|^OAK-1724-copyonread-directory.patch] - Another attempt. Implemented a 
CopyOnReadDirectory which would copy the Lucene index files upon read to local 
directory.

Also ensures that same FSDirectory is usable between multiple reades pinned to 
different version of OakDirectory.

This is mostly to record whatever work has been done. Wether we require it and 
add it to trunk would be decided if need arises.  


was (Author: chetanm):
[patch|^OAK-1724-copyonread-directory.patch] - Another attempt. Implemented a 
CopyOnReadDirectory which would copy the Lucene index files upon read to local 
directory.

Also ensures that same FSDirectory is usable between multiple reades pinned to 
different version of OakDirectory.

> Enable copying of Lucene index to local file system for read queries
> --------------------------------------------------------------------
>
>                 Key: OAK-1724
>                 URL: https://issues.apache.org/jira/browse/OAK-1724
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: query
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>             Fix For: 1.1
>
>         Attachments: OAK-1724-copyonread-directory.patch
>
>
> Currently the Lucene index is stored in NodeStore and is accessed via 
> OakDirectory which is an implementation of [Lucene 
> Directory|https://lucene.apache.org/core/4_0_0/core/org/apache/lucene/store/Directory.html].
>  This would work fine for SegmentStore but does not work very well when 
> BlobStore is used as with DocumentNodeStore
> For such scenarios it should be possible to copy the Lucene index to local 
> file system and then read queries are performed using that. IndexWriter would 
> continue to use the OakDirectory to store the updated index content in 
> NodeStore. 
> As Lucene does not modify any index file once created (ther are either 
> deleted or new one created), it should be possible to incrementally update 
> the index by copying newly created segment files. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to