You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Lars Hofhansl (JIRA)" <ji...@apache.org> on 2019/01/21 01:36:00 UTC
[jira] [Commented] (PHOENIX-5106) Avoid geting an explain plan for
each query (even without tracing)
[ https://issues.apache.org/jira/browse/PHOENIX-5106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16747604#comment-16747604 ]
Lars Hofhansl commented on PHOENIX-5106:
----------------------------------------
Simple fix... Untested - not even compiled, just want to park it here.
> Avoid geting an explain plan for each query (even without tracing)
> ------------------------------------------------------------------
>
> Key: PHOENIX-5106
> URL: https://issues.apache.org/jira/browse/PHOENIX-5106
> Project: Phoenix
> Issue Type: Bug
> Reporter: Lars Hofhansl
> Priority: Major
> Labels: performance
> Attachments: 5106.txt
>
>
> See this code fragment in BaseQueryPlan.iterator(...):
> {code}
> // wrap the iterator so we start/end tracing as we expect
> TraceScope scope =
> Tracing.startNewSpan(context.getConnection(), "Creating basic query for "
> + getPlanSteps(iterator));
> return (scope.getSpan() != null) ? new TracingIterator(scope, iterator) : iterator;
> {code}
> This will get the plan steps for each and every call to iterator, whether we're tracing or not.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)