Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-5106

Avoid getting an explain plan for each query (even without tracing)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.15.0, 5.1.0
    • None

    Description

      See this code fragment in BaseQueryPlan.iterator(...):

              // 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;
      

      This will get the plan steps for each and every call to iterator, whether we're tracing or not.

      Attachments

        1. 5106.txt
          2 kB
          Lars Hofhansl
        2. 5106-v1.txt
          2 kB
          Lars Hofhansl

        Activity

          People

            larsh Lars Hofhansl
            larsh Lars Hofhansl
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: