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

Vikas Saurabh edited comment on OAK-7613 at 11/23/18 12:31 PM:
---------------------------------------------------------------

Backported to 1.8 at [r1847229|https://svn.apache.org/r1847229].
Backported to 1.6 at [r1847254|https://svn.apache.org/r1847254].


was (Author: catholicon):
Backported to 1.8 at [r1847229|https://svn.apache.org/r1847229].

> Taking more time for iterating row of query Result which contain Facets
> -----------------------------------------------------------------------
>
>                 Key: OAK-7613
>                 URL: https://issues.apache.org/jira/browse/OAK-7613
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene, query
>            Reporter: Ayush Garg
>            Assignee: Vikas Saurabh
>            Priority: Major
>             Fix For: 1.10, 1.9.11, 1.8.10, 1.6.16
>
>
> Let me explain with example
> xpath query 1 =*"//element(*, *nt:unstructured)[ (jcr:contains(., 'admin')) 
> ]"*
> xpath query 2=*"//element(, nt:unstructured)[(jcr:contains(., 'admin')) ] 
> /(rep:facet(jcr:title))"*
> I want to extract result on above constrain and facet on property jcr:title .
> Case 1: First execute query 1 and iterate rows of QueryResult for getting 
> ResultSet and then execute query 2 then extract facet using                 
> FacetResult class.
> Case 2:Execute only query 2 and  then iterate rows of QueryResult for getting 
> ResultSet and extract facet using FacetResult class.                     In 
> this case time taken should be less as compared to case 1 because in case 
> only query is executed. but case 2 is taking                       more time.
> In case 2 QueryResult ( getting on executing query 2)also contain facet 
> Result and for iterating rows it is taking very large time compared to case 1.
> Possible reason for this is that during iterating each row it also iterate 
> columns(that contain facetResult) so as size of facetResult increases time 
> for iterating row also increases.   
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to