Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-43809

Add support for reporting phase times in analytics

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • Morpheus
    • 7.1.0
    • analytics

    Description

      In the query engine, there is a profile parameter called phases which returns parse, plan, and run time among other things. It would be nice to have something similar to this in the analytics engine.

      Query engine output:

      cbq> \set -profile "phases";
      cbq> select count(*) from KS1;
      {
          "requestID": "5c1daf41-d304-4b44-8c49-63a6f694d032",
          "signature": {
              "$1": "number"
          },
          "results": [
          {
              "$1": 100000
          }
          ],
          "status": "success",
          "metrics": {
              "elapsedTime": "4.99312ms",
              "executionTime": "4.911644ms",
              "resultCount": 1,
              "resultSize": 28,
              "serviceLoad": 2
          },
          "profile": {
              "phaseTimes": {
      	    "authorize": "16.325µs",
      	    "count": "4.295219ms",
      	    "instantiate": "15.363µs",
      	    "parse": "432.993µs",
      	    "plan": "45.055µs",
      	    "run": "4.403276ms"
      	},*
              "phaseOperators": {
      	    "authorize": 1,
      	    "count": 1
      	}
          }
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vijay.sarathy Vijay Sarathy
            vijay.sarathy Vijay Sarathy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty