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

propagate encoded_plan usage from REST API to N1QL

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • feature-backlog
    • 4.5.0
    • query
    • None
    • Sprint-06-24-2016

    Description

      Taking inspiration from https://forums.couchbase.com/t/execute-encoded-plan-through-n1ql/8407

      It would be good to allow using encoded_plan in n1ql, for example

      PREPARE "<string containing an encoded plan>" // decodes encoded plan and creates new prepared statement

      EXPLAIN "<encoded plan>" // decodes and explains

      or even having a function PLAN_EXPLAIN(plan), to be used in conjunction with the monitoring system keyspaces, e.g.

      SELECT PLAN_EXPLAIN(encoded_plan) FROM system:prepareds
      WHERE name = "....."

      which would explain a specific prepared statement.

      Attachments

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

        Activity

          People

            marco.greco Marco Greco (Inactive)
            marco.greco Marco Greco (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty