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

Alex Parvulescu commented on JCR-2959:
--------------------------------------

I pushed the first iteration based on the patch in revision #1161475.

It does not currently use native lucene sorts (we're missing the apis to figure 
out if a given field is indexed or not).
Also it is untested against joins of any kind.

The code is disabled by default, to keep things working. You can enable it by 
setting the system property "useNativeSort" to true. 
This property will be removed once the implementation is stable enough.

> SQL2 QueryEngine should use Lucene for sort
> -------------------------------------------
>
>                 Key: JCR-2959
>                 URL: https://issues.apache.org/jira/browse/JCR-2959
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>    Affects Versions: 2.2.1
>            Reporter: Robert Seidel
>            Priority: Minor
>         Attachments: JCR-2959.patch
>
>
> Currently all SQL2 queries with "order by" expression are sorted with 
> Collections.sort - which is slow and very bad if there are lots of hits. 
> Lucene should be used for sorting hits instead.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to