You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Istvan Toth (Jira)" <ji...@apache.org> on 2021/01/15 09:02:00 UTC
[jira] [Updated] (PHOENIX-5106) Avoid getting an explain plan for
each query (even without tracing)
[ https://issues.apache.org/jira/browse/PHOENIX-5106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Istvan Toth updated PHOENIX-5106:
---------------------------------
Fix Version/s: 5.1.0
> Avoid getting 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
> Assignee: Lars Hofhansl
> Priority: Minor
> Labels: performance
> Fix For: 4.15.0, 5.1.0
>
> Attachments: 5106-v1.txt, 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
(v8.3.4#803005)