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

Michael Dürig edited comment on OAK-1037 at 9/30/13 12:38 PM:
--------------------------------------------------------------

Attached patch reduces the number of {{AbstractRoot#getRootState}} calls per 
query to 1 (from 3) by introducing a execution context within which the query 
is executed. This doesn't seem to have an impact on the performance of the xml 
import though. Maybe the patch is useful otherwise however since it make the 
state used to execute the query against more explicit. [~tmueller], WDYT?

*Update*: I forked this into a separate issue OAK-1052


was (Author: mduerig):
Attached patch reduces the number of {{AbstractRoot#getRootState}} calls per 
query to 1 (from 3) by introducing a execution context within which the query 
is executed. This doesn't seem to have an impact on the performance of the xml 
import though. Maybe the patch is useful otherwise however since it make the 
state used to execute the query against more explicit. [~tmueller], WDYT?

> Improve performance of XmlImport
> --------------------------------
>
>                 Key: OAK-1037
>                 URL: https://issues.apache.org/jira/browse/OAK-1037
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: jcr
>    Affects Versions: 0.9
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>         Attachments: jmc-oak-importxml-1.png, OAK-1037.patch, 
> OAK-1037-uuidfix.patch
>
>
> The XmlImport benchmark [1] is running slow on Oak compared to Jackrabbit on 
> various persistence backends
> {noformat}
> # XmlImportTest                  min     10%     50%     90%     max       N
> Oak-Tar                       277901  277922  282454  288859  289186      10
> Oak-Mongo                     362531  363342  382810  401213  401954      10
> Jackrabbit                     11961   11969   12816   14158   14173      10
> {noformat}
> The performance here needs to be improved
> [1] 
> https://svn.apache.org/repos/asf/jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/XmlImportTest.java



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to