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

Davide Giannella commented on OAK-2056:
---------------------------------------

Committed in http://svn.apache.org/r1644863 (trunk) a scalability
benchmark for measuring any potential code changes in the future.

Run on my local with the command 

{noformat}
java -Xmx2048m -Dincrements="10,100,1000,5000" -Dindex=false \
   -jar oak-run*.jar scalability \
   --base /var/tmp/oak/ ScalabilityBlobSearchSuite:OrderByDate Oak-Tar
{noformat}

and these are the results

{noformat}
# OrderByDate                      min     10%     50%     90%     max       N
Oak-Tar                             31      31     764   35351   35351       4
        # Iterations/Load               10      100     1000    5000
        Time (ms)                       31      51      1476    35351  
{noformat}


> Optimize orderings by date fields
> ---------------------------------
>
>                 Key: OAK-2056
>                 URL: https://issues.apache.org/jira/browse/OAK-2056
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 1.0.4, 1.0.8
>            Reporter: Przemo Pakulski
>              Labels: performance
>
> Sorting by date fields is very slow in oak, especially if result set size is 
> large.
> I'm running the following JCR-SQL2 query
> {code}
> SELECT * FROM [cq:PageContent] AS [c] WHERE ISDESCENDANTNODE('/content')
> {code}
> which returns 3270 results on my oak repo.
> {noformat}
> Query execution times are as below
> ---------------------------------------
> No order clause               |  0,147 sec
> ORDER BY [jcr:title]          |  1,203 sec
> ORDER BY [jcr:createdBy]      |  1,018 sec
> ORDER BY [jcr:created]                | 25,229 sec
> {noformat}
> Ordering by date field adds extra 24 seconds overhead.



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

Reply via email to