Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-12332

Configuration section in transactions docs should mention both global & per-transaction config

    XMLWordPrintable

Details

    Description

      The Cofiguration section only mentions the global TransactionsConfig. We should also mention the per-transaction TransactionOptions, as that's a common use case.

      In Python the relevant snippet would be something like:

      opts = TransactionOptions(durability=ServerDurability(DurabilityLevel.PERSIST_TO_MAJORITY))
       
      cluster.transactions.run(txn_logic, opts)

      Links to relevant section in a few SDKs:

      Attachments

        Issue Links

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

          Activity

            People

              richard.smedley Richard Smedley
              Dimitris.Christodoulou Dimitris Christodoulou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty