You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2016/02/15 15:41:18 UTC
[jira] [Commented] (SLING-5507) Collect more details around query
execution
[ https://issues.apache.org/jira/browse/SLING-5507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15147420#comment-15147420 ]
Chetan Mehrotra commented on SLING-5507:
----------------------------------------
Details related to query look like below
{code:javascript}
"queries": [{
"query": "/jcr:root/content//*[jcr:content/cq:siteVariant/@cq:variantFamily='geometrixx-outdoors']",
"plan": "[nt:base] as [a] /* property cqVariantFamily = geometrixx-outdoors where ([a].[jcr:content/cq:siteVariant/cq:variantFamily] = 'geometrixx-outdoors') and (isdescendantnode([a], [/content])) */",
"caller": "com.day.cq.wcm.core.impl.variants.PageVariantsProviderImpl.queryVariantRoots(PageVariantsProviderImpl.java:191)"
},{
"query": "/jcr:root/content/geometrixx-outdoors/en/qatestrootpage//element(*, cq:Page)[jcr:content/@jcr:title = 'A Page']",
"plan": "[cq:Page] as [a] /* lucene:cqPageLucene(/oak:index/cqPageLucene) jcr:content/jcr:title:A Page where ([a].[jcr:content/jcr:title] = 'A Page') and (isdescendantnode([a], [/content/geometrixx-outdoors/en/qatestrootpage])) */",
"caller": "com.day.cq.search.impl.builder.QueryImpl.executeXpath(QueryImpl.java:391)"
}
]
{code}
Various attributes are
* {{query}} - Query statement which got executed
* {{plan}} - Oak query plan
* {{caller}} - Class name from which the query call was invoked
> Collect more details around query execution
> -------------------------------------------
>
> Key: SLING-5507
> URL: https://issues.apache.org/jira/browse/SLING-5507
> Project: Sling
> Issue Type: Sub-task
> Components: Extensions
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Priority: Minor
> Fix For: Log Tracer 1.0.0
>
>
> As part of response for queries following data should be collected
> # Source Class from where query was done - Make attempt to remove framework layers!
> # Query Plan
> # Query duration if possible
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)