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

Chetan Mehrotra commented on OAK-5421:
--------------------------------------



Benchmark results pre change
{noformat}
Oak-Segment-Tar-DS                 5      43      52      67     100    1411    
3575 3203112      5003     21864      #nrt,oakCodec,numIdxs:10
Oak-Segment-Tar-DS                 5      85     124     165     247    1486    
1592 2731428      2194      9756      #sync,oakCodec,numIdxs:10
Oak-Mongo-DS                       5      98     155     206     324    2233    
1174  676113      2775      7236      #nrt,oakCodec,numIdxs:10
Oak-Mongo-DS                       5     128     189     274     490    2042    
 939  951171      1758      5778      #sync,oakCodec,numIdxs:10
{noformat}

Post change
{noformat}
Oak-Segment-Tar-DS                 5      45      52      66      93    1412    
3665 3509794      5108     22470      #nrt,oakCodec,numIdxs:10
Oak-Segment-Tar-DS                 5      65      96     127     191     934    
2090 2593118      2862     12828      #sync,oakCodec,numIdxs:10
Oak-Mongo-DS                       5      76     123     184     289    2179    
1351  928686      3133      8310      #nrt,oakCodec,numIdxs:10
Oak-Mongo-DS                       5     112     171     229     392    1853    
1080  541634      2522      6666      #sync,oakCodec,numIdxs:10
{noformat}

As can be seen for sync case this approach provides better performance numbers

> Add LuceneDoc directly to queue from LuceneIndexEditor
> ------------------------------------------------------
>
>                 Key: OAK-5421
>                 URL: https://issues.apache.org/jira/browse/OAK-5421
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>             Fix For: 1.5.18, 1.6
>
>
> Currently the LuceneDoc is created from {{LuceneIndexEditor}} and added to 
> {{LuceneDocumentHolder}}. From there its added to queue in 
> LocalIndexObserver. 
> This can be improved by adding the document directly to DocumentQueue which 
> would help in sync index where the document would get added to index by the 
> time commit completes and reaches observer stage and LocalIndexObserver would 
> not have to wait for indexing to complete.



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

Reply via email to