Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-1273

adhoc query option should default to true

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • .future
    • None
    • None
    • None
    • 1

    Description

      Queries are expected to be adhoc by default and only prepared if opted into by the user.

      See for example java https://github.com/couchbase/couchbase-jvm-clients/blob/7641c65e7f5aa12a5351c46e89b3db2757ad0492/java-client/src/main/java/com/couchbase/client/java/query/QueryOptions.java#L53

      If I run a query without specifying any options it is prepared

      cluster.Query("select * from default", nil)
      

      HTTP request

      {"auto_execute":true,"client_context_id":"5a0aaa64-f133-4055-94eb-c0c8b33956f1","metrics":false,"statement":"PREPARE select * from default","timeout":"1m14.999939682s"}
      

      Attachments

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

        Activity

          People

            charles.dixon Charles Dixon
            jake.rawsthorne Jake Rawsthorne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty